algorithmic modeling for Rhino
Ciao Andrea.
new Transform.Rotation() instead of TransformRotation to acess the Rotation Method.
then you might do this:
.Rotation(Math.PI * "gradi"/ 180, y, new Point3d(0,0,0));
or .Rotation(Math.PI * "gradi"/ 180, new Vector3d(0,0,1), new Point3d(0,0,0));
Hope this works ;-) I didn't test it
Saluti Flo
Transform movex = new Transform.Rotation(0.5 * Math.PI, y, Point3d.Origin);
x.Transform(movex);
A = x;
thank you for reply,but i tryit , it remains in problem.....
Hi Andrea,
Try this using the GeometryBase.Transform method:
Dim newcrv As Curve
newcrv = x.DuplicateCurve()
newcrv.Transform(transform.Rotation(0.5, y, x.PointAtEnd))
A = newcrv
or this using the GeometryBase.Rotate method:
Dim newcrv As Curve
newcrv = x.DuplicateCurve()
newcrv.rotate(0.5, y, x.PointAtEnd)
A = newcrv
Both methods are from the RhinoCommon SDK
thank you Arthur,and i use C#
the code is
private void RunScript(Curve x, Vector3d y, ref object A)
{
x.Transform(Transform.Rotation(20 * Math.PI / 180, y, Point3d.Origin));
A = x;
}
the "T"should be capital,thankyou very much!!!
You're welcome. This is helping me too :)
http://www.grasshopper3d.com/forum/topics/why-does-the-geometrybase...
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by