Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8524

Rhino3dm extrusion to brep

$
0
0

Hi all,

I am using this method to convert an extrusion into a brep as I am interested in accessing individual faces.

In the image below, on the left-hand side you have extrusion and on the right-hand side the same extrusion is converted into closed polysurface in rhino through convertExtrusion command.

I am using rhino3dm python. When I access the faces of the closed polysurface I get six faces which I expect. However, when I try to accessing the faces of a brep created from extrusion using the ToBrep method then I am only able to access two faces. Why does this happen? What am I missing here?

On an additional note, when I check the length of faces in the brep created from extrusion in rhino3dm through ToBrep method, it shows as 6, which is right.

Following is how I am doing this to be explicit.

print(len(brep.Faces)) # length check
for i in range(len(brep.Faces)): # Trying to print all faces 
      print(brep.Faces[i])

Thanks!
extrusion to brep

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 8524

Trending Articles