THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/06/2004 at 09:18, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.500
Platform: Windows ;
Language(s) : C++ ;
---------
Hi forum;
I want to do a plugin generator with two input splines like e. g. c4d's Sweep Nurbs. What ist the best way to do this? Any tips are highly appreciated as I feel a bit lost at the moment.
1. I don't know wether I should get the the input splines via GetAndCheckHierarchyClone() or via GetVirtualLineObject() as in Triangulate.cpp. Where are the differences? I thought one has to use GetHierarchyClone to retrieve a scene object. And:
2. Let's say I would want to rebuild the sweep nurbs functionality. Should I use SplineObjects to retrieve the resulting polys point positions from or better LineObjects. The c4d nurbs objects use LineObjects, I think, correct?
3. What's the best method to check, wether my input objects are Splines or SplinePrimitives? instanceof()? BaseList()->GetInfo()?. Or is it safe enough to rely on GetRealSpline() returning NULL when called with a non spline object?
And a last question:
4. If I use LineObjects, I cannot use GetSplineTangent(), correct? Do I have to rebuild this function myself to work with LineObjects?
Thanx you all very much for your help in advance,
cheers mnu