Is there a method/simple way to move a curve?
(i know how to do it in not so simple way)
For example to move a line by XYZ(1,0,0)
Sorry if my question is too easy.
Solved! Go to Solution.
Solved by BenoitE&A. Go to Solution.
Hey Mimi,
Yes it is easy:
// Your curve
Curve myCurve;
// Your vector of translation
XYZ myVector = new XYZ(1,0,0);
// Define a transformation
Transform tf = Transform.CreateTranslation(myVector);
// Apply transformation
Curve myNewCurve = myCurve.CreateTransformed(tf);
You can explore the different types of transformations which are very usefull.
Bye
Benoit