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

Method makeLine

src/ifc2ca/templates/salome/scriptSalome.py:64–73  ·  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

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

Callers 1

makeObjectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected