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

Method makeFace

src/ifc2ca/_deprecated/scriptSalomeBonded.py:70–83  ·  view source on GitHub ↗

Function to define a Face from a polyline (list of points)

(self, pl)

Source from the content-addressed store, hash-verified

68 return self.geompy.MakeLineTwoPnt(P1, P2)
69
70 def makeFace(self, pl):
71 """Function to define a Face from
72 a polyline (list of points)"""
73
74 pointList = [None for _ in range(len(pl))]
75 for ip, (x, y, z) in enumerate(pl):
76 pointList[ip] = self.geompy.MakeVertex(x, y, z)
77
78 LineList = [None for _ in range(len(pl))]
79 for ip, P2 in enumerate(pointList):
80 P1 = pointList[ip - 1]
81 LineList[ip] = self.geompy.MakeLineTwoPnt(P1, P2)
82
83 return self.geompy.MakeFaceWires(LineList, 1)
84
85 def makeObject(self, geometry, geometryType):
86 if geometryType == "point":

Callers 1

makeObjectMethod · 0.95

Calls 1

rangeFunction · 0.50

Tested by

no test coverage detected