Changing Spline Basis
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/02/2005 at 16:47, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.0-9.1
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
Howdy,We need to know how to change the spline basis via SDK the same way it changes when the user changes the spline type in the Attribute Manager. For instance, you create a spline of type Akima and then change it to Bezier ( Hermite ) the Bezier sets the handles to closely approximate the Akima spline. If we just change types in the SDK first you get a crash because there were no Tangents. Obviously there is a function to do this or it is done simply in the spline object code which should be simple, yes? Can you share that with us?
Thank you for your time,
David Farmer
coreaudiovisual -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/02/2005 at 11:18, xxxxxxxx wrote:
Has SDK support been discontinued?
David Farmer
coreaudiovisual -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/02/2005 at 12:57, xxxxxxxx wrote:
Sorry, no. I was just a bit busy last week.
I don't seem to have any problem with converting the splines. At least this code converts an Akima spline just fine to a Bezier curve that matches the Akima:BaseObject* obj = doc->GetFirstObject(); obj->SetParameter(DescID(SPLINEOBJECT_TYPE), SPLINEOBJECT_TYPE_BEZIER, 0); EventAdd();
Did you possibly set this in the BaseContainer directly?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/02/2005 at 14:03, xxxxxxxx wrote:
Sorry, I wasn't sure. I was looking for posts to see if you taken a vacation. Sadly I actually had to wrap my brain around the basis functions and write my own. After seeing your response I need to go put my head n a toilet... 9-)
Crap, I was getting the basecontainer data directly. Bad darf. Thank you!
darf