Grasshopper

algorithmic modeling for Rhino

Hi, 

I'm trying to do something very simple here. I have BRep, imagine a cube without the top and bottom faces. So that's four faces. I want to be able to extract the components of each of the faces and obtain the edges in a logical way. Say, a list where 0 index responds to the top edge, 1 index responds to one side, 2 index responds to the bottom edge, and index 3 responds to the other edge. 

This should work for all the faces of the 'cube' at the same time. Until now, top and side edges are all mixed up in the list, although in branches of four items each. Why are the edge component or the wireframe component not working in logical order?

what could i do?

Views: 799

Replies to This Discussion

Edge order will largely depend on how the faces were created. For a single curve segement, the result of loft or  extrusion will typically contain the original curve as the last edge, but there is no rule that corresponds to your desired ordering. Rhino/GH will analyze the original curve and determine the best/most efficient way to build the extruded surface.

If you want to have consisten edge order, you will have to take care of that yourself. For most cases, exploding the base curve before extrunding should take care of that.

thanks for the exploding tip.

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service