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

Method makeLine

src/ifc2ca/_deprecated/scriptSalomeBonded.py:59–68  ·  view source on GitHub ↗

Function to define a Line from a polyline (list of 2 points)

(self, pl)

Source from the content-addressed store, hash-verified

57 return self.geompy.MakeVertex(x, y, z)
58
59 def makeLine(self, pl):
60 """Function to define a Line from
61 a polyline (list of 2 points)"""
62
63 x, y, z = pl[0]
64 P1 = self.geompy.MakeVertex(x, y, z)
65 x, y, z = pl[1]
66 P2 = self.geompy.MakeVertex(x, y, z)
67
68 return self.geompy.MakeLineTwoPnt(P1, P2)
69
70 def makeFace(self, pl):
71 """Function to define a Face from

Callers 1

makeObjectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected