algorithmic modeling for Rhino
I have a list of mesh faces, and each face has a list of edges. How can I add a true/false value to and edge based on the face that it sits on?
so that face if face 0 and 1 share edge A the list would look like
{0}(A,true)(B,false)(C,true)
{1}(A,false)(B,true)(C,false)
Edit:
Let me rephrase the question, attached is a screenshot of the goal.
For each instance of an edge index I want to set one to true and the other to false. So that each shared edge has an opposite boolean depending on the face its part of.
Tags:
Use related connectivity trees (edges to faces, faces to edges, faces to faces etc etc). Sandbox provides such kind of stuff (but there's issues for non manifold meshes - if there's such animals around) .
That said since a mesh consists from 3 types of objects (vertices, edges and faces) there's 9 possible connectivity possibilities.
BTW: for 2 given Lists of items a connectivity tree samples integers in branches where the primary dimension is the item's index in List A and the items are indices in List B.
Hallo Tomasz
what is it you are trying to archiev? Could you specify a little bit further?
I added a detail of the condition.
Given a single edge, a face should draw geometry that extends into adjacent face. That adjacent face should then draw geometry that recedes a little bit.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by