Grasshopper

algorithmic modeling for Rhino

who know how to use this component( project an object onto a plan) in C#?thankyou!

thank you!

Views: 534

Replies to This Discussion

help!

It's a transform, so the C# alternative is:

YourObject.Transform(Transform.Project(YourPlane));

thank you for reply,but...i have try but non works....
the code is:

private void RunScript(Brep x, ref object A)
{
Plane p = new Plane(Point3d.Origin, Vector3d.ZAxis);
A = x.Transform(Transform.PlanarProjection(p));
}

A only returns "True"...but i want a projected object on the XY plane....
but meanwhile ...the project component works well...

the file is upload

Attachments:

Hi Andrea,
Transformations return booleans.

You need to assign "A = x"

Thank you Djordje! it works!

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