On 07/11/2016 at 15:16, xxxxxxxx wrote:
I'm currently working on a Spline Generator object that takes a child spline object as an input and creates an outlined version of that spline. I'm not sure whether to return my object in GetVirtualObjects or GetContour.
- GetVirtualObjects
-- Pro: Includes hh
object so that I can use BaseObject.GetAndCheckHierarchyClone()
for caching.
-- Con: When I make the object editable I end up w/ a Null object half the time and a hierarchy structure that seems a bit confusing.
- GetContour
-- Pro: Recommended for spline objects.
-- Pro: Always get a spline object when I make editable.
-- Con: No way to auto-cache child objects.
Is there an official best practice in this scenario? The docs say to use GetContour
for spline objects, and GetVirtualObjects
for GetContour
for splines - but what about a spline generator object that uses other splines as inputs?
Thank you!
Donovan