Пример #1
0
    def updateEdges(self):

        self.edges = [
            objs.GeoEdge(self.corners[0], self.corners[1]),
            objs.GeoEdge(self.corners[1], self.corners[2]),
            objs.GeoEdge(self.corners[2], self.corners[3]),
            objs.GeoEdge(self.corners[3], self.corners[0])
        ]
Пример #2
0
    def updateEdges(self):

        scene = self.scene
        self.edges = [
            objs.GeoEdge(scene, (self.corners[0], self.corners[1])),
            objs.GeoEdge(scene, (self.corners[1], self.corners[2])),
            objs.GeoEdge(scene, (self.corners[2], self.corners[3])),
            objs.GeoEdge(scene, (self.corners[3], self.corners[0]))
        ]
Пример #3
0
    def updateEdges(self):

        self.edges = [
            objs.GeoEdge(self.scene, (self.corners[0], self.corners[1])),
            objs.GeoEdge(self.scene, (self.corners[1], self.corners[2])),
            objs.GeoEdge(self.scene, (self.corners[2], self.corners[3])),
            objs.GeoEdge(self.scene, (self.corners[3], self.corners[0]))
        ]

        self.edges[3].type = self.gPoints[0].type
        self.edges[1].type = self.gPoints[1].type
Пример #4
0
 def updateEdges(self):
     
     self.edges = []
     cnum = len(self.corners)
     for i in range(cnum):
         edge = objs.GeoEdge(self.corners[i], self.corners[(i+1)%cnum])
         self.edges.append(edge)