Grasshopper

algorithmic modeling for Rhino

Rectangles (ordered)

Planar Srf (disordered)

 

Views: 514

Replies to This Discussion

Hi Trevor,

 

yup, just like Joining curves will mess up the order. To speed up the operation we store the geometry (all the geometry) into a spatial subdivision tree, then try and find all the curves that define individual planar surfaces.

 

The upshot is that in cases like this, where there is a 1:1 mapping between planar closed input curves and surfaces, the order is -pointlessly- destroyed.

 

This is not something I can fix*. But there are ways to solve this. Three that spring to mind:

 

1) Don't use the Planar Surface component, just plug the curve parameter directly into a Surface parameter. Curve->Surface conversion will only work if the input curve is closed and planar, and it will only operate on individual curves.

2) Graft your curves before you run them through the Planar Surface component, this will ensure the component will only operate on individual curves.

3) Sort your surfaces afterwards using some sort of distance key or something to put them back in order.

 

* or rather, not without rewriting the Planar Surface logic and/or sacrificing performance.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service