Grasshopper

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~!!!

Views: 1169

Replies to This Discussion

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

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service