Hello , what is the error in this code? always GetMesh(rh.MeshType.Any) is None.
The file is a simple cube
import rhino3dm as rh
file = "..../cube.3dm"
rf = rh.File3dm.Read(file)
for obj in rf.Objects:
geo = obj.Geometry
if geo.ObjectType == rh.ObjectType.Brep:
faces = geo.Faces
for i in range(len(faces)):
print i, faces[i]
mesh = faces[i].GetMesh(rh.MeshType.Any)
print mesh
0 <rhino3dm._rhino3dm.BrepFace object at 0x00000000037E4650>
None
1 <rhino3dm._rhino3dm.BrepFace object at 0x00000000037E4650>
None
2 <rhino3dm._rhino3dm.BrepFace object at 0x00000000037E4650>
None
3 <rhino3dm._rhino3dm.BrepFace object at 0x00000000037E4650>
None
4 <rhino3dm._rhino3dm.BrepFace object at 0x00000000037E4650>
None
5 <rhino3dm._rhino3dm.BrepFace object at 0x00000000037E4650>
None
6 posts - 3 participants