Notifications
Clear all
[Closed] SDK splineshape
Nov 10, 2013 10:47 pm
where/how do you catch user has edited the spline so I can flag it as “dirty” and update/recalc an associated mesh ?
1 Reply
Nov 10, 2013 10:47 pm
finally found it, you can catch the edit by implementing move, rotate & scale functions from baseobject, then bounce it back to splineshape so it can update the spline.
void mysplineclass::Move(TimeValue t, Matrix3& partm, Matrix3& tmAxis, Point3& val, BOOL localOrigin)
{
// do my stuff here
SplineShape::Move(t,partm,tmAxis,val,localOrigin);
// or here
}
void mysplineclass::Rotate(TimeValue t, Matrix3& partm, Matrix3& tmAxis, Quat& val, BOOL localOrigin)
{
SplineShape::Rotate(t,partm,tmAxis,val,localOrigin);
}
void mysplineclass::Scale(TimeValue t, Matrix3& partm, Matrix3& tmAxis, Point3& val, BOOL localOrigin)
{
SplineShape::Scale(t,partm,tmAxis,val,localOrigin);
}