I'm trying to take a box and turn it into a mesh with 4 equally spaced
faces per side of the box. So a mesh with 24 total faces. Then I want
to take the four points from each face and create a poly line that I
will later extrude.

I think I've figured out how to do this with data trees. Here's what
I've done.

Start with a box.
Turn it into a mesh with Mesh Box
Split up the Mesh with Mesh Components
Used Graft to create a data tree based on  the Faces of the mesh.
Get the corners of the face with Face Components
Merge All four points back together into a list.

After the merge I have a Structure with 24 paths (for 24 faces), and
each path has N=4 for four point indexes per face.

But If I actually look at these values the first face has four
indexes, yet every other face only has three indexes with the fourth
value being null. Cleaning the tree gives me a structure like this

Structure (Paths =24)
path {0;0;0} (N = 4)
path {0;0;1} (N = 3)
path {0;0;2} (N = 3)
path {0;0;3} (N = 3)
etc...

What's going on here? How come all my faces don't have four points? If
I pull out any face manually with List Item I do indeed get four
points.

Eric

Reply via email to