Grasshopper

algorithmic modeling for Rhino

Hi,

If any one could help me on this I would be very grateful.

I am trying to calculate area of a 3D body (ex. box), but I want to be able to calculate it in any of the predefined plans (XY, YZ, XZ). I had that problem with the area component in Gh, and that is why I am creating new component in VB.Net.

So far the component that I created (attached below) acts same as the regular Gh component, calculates random area.

Thank in advance,

Jelena

Views: 399

Attachments:

Replies to This Discussion

So you want the area of the brep as projected onto a plane (and then only half the area because you'd get both the front and the back)?

You could use a PlanarProjection transform on your Brep with the plane prior to computing the area. If your shapes are known to be boxes or other convex solids there will be quicker ways of doing it, but not easier.

Thank you David,

I never thought of PlanarProjection, it works great. I now have to try if it works with brep

with a more complex geometry (not a box).

Jelena

 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service