Grasshopper

algorithmic modeling for Rhino

I have a 3D point cloud. I need to calculate the 2D area that is covered by the region. That is, if you projected my 3D  point cloud onto the XZ-plane, what is the covered area accounting for all holes? You can convex hull a point cloud, but there are frequent concavities in my shape so this is no good.

Is there a simple way to solve this, either in .NET or with GH components? Images below for context.

Cheers,

TS

Views: 2530

Replies to This Discussion

And likewise -- I can get the outside boundary using metaball, but still unable to account for voids within the point cloud.

Using this algorithm :

-project point on plane XY

-create mesh

-extract polyline on faces

-explode polyline and extract length

-sort length and extract end item

-dispatch polyline> max length

-region union

Attachments:

bingo -- thanks for the help all. certainly a few ways to skin this cat.

You use what?

You can adjust the max lenght parameter !

enjoy.

Thomas,

In your image, How did you change the type of wires?

&

What it is the last component you are using?

You can edit defaults for the canvas styling in:

C:\Users\thomas.shouler\AppData\Roaming\Grasshopper\grasshopper_gui.xml

In this case, I have:

<item name="wire_default" type_name="gh_drawing_color" type_code="36">
<ARGB>150;220;220;220</ARGB>
</item>

<item name="wire_selected_b" type_name="gh_drawing_color" type_code="36">
<ARGB>50;0;0;0</ARGB> </item>

I also make the background a darker gray to make it easier on the eyes:

<item name="canvas_backcolor" type_name="gh_drawing_color" type_code="36">
<ARGB>100;100;100;100</ARGB>
</item>

You'll have to close out of rhino when editing the xml, and then restart.

That preview component sits within the Human plugin: http://www.food4rhino.com/project/human?ufh

Thanks Thomas.

And now it seems to be falling over, when I perform the boolean. All of my curves are there. Why might this be?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service