algorithmic modeling for Rhino
this is my c# code in gh,but i really donnot know why it cannot work.......
private void RunScript(Point3d x, Point3d y, Point3d z, ref object A)
{
Vector3d t = new Vector3d(z.X - x.X, z.Y - x.Y, z.Z - x.Z);
z.Transform(t);
A = z;
}
i just want to move "z" by vector "t".......
Help....Thank you very much~!!!
Tags:
You 'Add' them together.
A = Rhino.Geometry.Point3d.Add(z, t);
http://www.rhino3d.com/5/rhinocommon/html/AllMembers_T_Rhino_Geomet...
thankyou,Benjamin,and i find that z=z+t can works!
even better!
Also
z += t;
will work.
Cheers,
- Giulio
______________
giulio@mcneel.com
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