PDA

View Full Version : SDK -- move vertex


goroT
04-22-2009, 04:08 AM
I want to make the modifiy plug-in that moves spline.
Is it possible to move vertexes by the use of "SetKnot" method?
Could somebody tell me how this can be done ?
Is there any other way to achieve this?

-----------------------------------------------------
SplineShape *ss = (SplineShape*)os->obj;
BezierShape &shape = ss->shape;

int I_SScount = shape.splineCount;
Point3 p;

for (int i=0; i<I_SScount; i++)
{
for (int t=0; t<shape.GetTotalKnots(); t++)
{
p=shape.splines[i]->GetKnot(t).Knot();
p = p*3;
shape.splines[i]->GetKnot(t).SetKnot(p);
}
}
-----------------------------------------------------

CGTalk Moderation
04-22-2009, 04:08 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.