Exemplo n.º 1
0
    def moveByNormal(self, val):

        vec = utils.vectorMultiplyC(self.normal, val)

        for gp in self.gPoints:
            gp.moveByVector(vec)

        self.updateGeometry()
Exemplo n.º 2
0
    def normalize_ceiling(self, ccH=1.6):

        scale = ccH / (self.layoutHeight - self.cameraHeight)
        for point in self.layoutPoints:
            point.xyz = utils.vectorMultiplyC(point.xyz, scale)

        self.cameraHeight *= scale
        self.layoutHeight *= scale

        self.updateLayoutGeometry()
Exemplo n.º 3
0
    def normalize(self, cameraH=1.6):

        scale = cameraH / self.cameraHeight
        for point in self.layoutPoints:
            point.xyz = utils.vectorMultiplyC(point.xyz, scale)

        self.layoutHeight *= scale
        self.cameraHeight = cameraH

        self.updateLayoutGeometry()