Makeperiodic command


#1

question 1:
makeperiodic command can make a close curve to periodic,but I can"t find the corresponding sdk function .
question 2:
I have two closed curves, one curve is periodic,and another is not periodic.
when I using loft comman,it’t faied,then I using makeperiodic command make the curve to peridic,loft will success.
why?


#2

question 2:
I know why this happen now.
I want using these two closed curves do loft.
so I using next code to aline these two curve:
c1->getclosepoint(c2->pointatstart(),&t,10)
ChangeClosedCurveSeam(c1,t);//this reduce to the problem.
c1’s domain is from 0 to 100.
but t is equal 0.00000000000000012,every close to 0
if I add next code,loft will success.
if(abs(t-domian.min)<0.00000000000001)
{
t=domain.min;
}


#3

because the param is very close the start point’s param,so when using
ChangeClosedCurveSeam will produce acute angle.
so loft will failed
now I just have one question,please help me to see:
makeperiodic command can make a close curve to periodic,but I can"t find the corresponding sdk function .


(Dale Fugier) #4

Why do you need to convert a non-periodic curve to a periodic curve? Why not just make a periodic curve in the first place?


#5

for example:
I have a curve a,which is periodic curve,then I will using the curve a creat curve b(for example :smile: just offset curve a),I can’t prosize curbe b is always periodic,even is not closed after changed.
so i need test if curve b is closed,then test if it’s periodic.