mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 16:22:53 +00:00
triangulation-type setting for non-triangulated polyhedral from iterator
This commit is contained in:
@@ -681,7 +681,17 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
|
||||
|
||||
%pythoncode %{
|
||||
# Hide the getters with read-only property implementations
|
||||
faces = property(faces)
|
||||
faces_tri = property(faces)
|
||||
polyhedral_faces_without_holes = property(polyhedral_faces_without_holes)
|
||||
polyhedral_faces_with_holes = property(polyhedral_faces_with_holes)
|
||||
def get_faces(self):
|
||||
if self.faces_tri:
|
||||
return self.faces_tri
|
||||
elif self.polyhedral_faces_without_holes:
|
||||
return self.polyhedral_faces_without_holes
|
||||
else:
|
||||
return self.polyhedral_faces_with_holes
|
||||
faces = property(get_faces)
|
||||
edges = property(edges)
|
||||
material_ids = property(material_ids)
|
||||
materials = property(materials)
|
||||
|
||||
Reference in New Issue
Block a user