Example #1
0
    def updateGeometry(self):

        cameraH = self.scene.cameraHeight
        cam2ceilH =  self.scene.layoutHeight - cameraH 
        self.height = cam2ceilH if self.isCeiling else cameraH 
        self.planeEquation = self.normal + (self.height,)
        self.color = utils.normal2color(self.normal)

        self.updateCorners()
        self.updateEdges()
Example #2
0
    def updateGeometry(self):

        cameraH = self.__scene.label.getCameraHeight()
        cam2ceilH = self.__scene.label.getCam2CeilHeight()
        self.height = cam2ceilH if self.__isCeiling else cameraH
        self.planeEquation = self.normal + (self.height, )
        self.color = utils.normal2color(self.normal)

        self.updateCorners()
        self.updateEdges()
        self.updateBbox2d()
Example #3
0
    def updateGeometry(self):

        self.updateCorners()
        self.updateEdges()

        self.normal = utils.pointsNormal(self.corners[0].xyz,
                                         self.corners[1].xyz,
                                         self.corners[3].xyz)
        self.color = utils.normal2color(self.normal)
        self.planeEquation = utils.planeEquation(self.normal,
                                                 self.corners[0].xyz)
        self.width = utils.pointsDistance(self.corners[0].xyz,
                                          self.corners[1].xyz)

        for obj2d in self.attached:
            obj2d.updateGeometry()