MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / makePartition

Method makePartition

src/ifc2ca/templates/salome/scriptSalome.py:98–105  ·  view source on GitHub ↗
(self, objects, geometry_type)

Source from the content-addressed store, hash-verified

96 return self.makeFace(geometry)
97
98 def makePartition(self, objects, geometry_type):
99 if geometry_type == "Vertex":
100 shapeType = "VERTEX"
101 if geometry_type == "Edge":
102 shapeType = "EDGE"
103 if geometry_type == "Face":
104 shapeType = "FACE"
105 return self.geompy.MakePartition(objects, [], [], [], self.geompy.ShapeType[shapeType], 0, [], 1)
106
107 def length(self, geometry):
108 return (

Callers 1

createMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected