Grasshopper

algorithmic modeling for Rhino

it cannot work....can you tell me why ?

thank you very much!!!

Views: 810

Replies to This Discussion

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

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service