Function to define a Face from a polyline (list of points)
(self, pl)
| 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": |