def rotatePoints(elementNode, points, prefix): 'Rotate the points.' derivation = RotateDerivation(elementNode, prefix) if derivation.rotateTetragrid == None: print('Warning, rotateTetragrid was None in rotate so nothing will be done for:') print(elementNode) return matrix.transformVector3sByMatrix(derivation.rotateTetragrid, points)
def transformPoints(elementNode, points, prefix): 'Transform the points.' derivation = TransformDerivation(elementNode, prefix) if derivation.transformTetragrid == None: print('Warning, transformTetragrid was None in transform so nothing will be done for:') print(elementNode) return matrix.transformVector3sByMatrix(derivation.transformTetragrid, points)
def transformGeometryOutput(self, geometryOutput): 'Transform the geometry output by the local matrix4x4.' if self.getMatrix4X4() != None: matrix.transformVector3sByMatrix(self.getMatrix4X4().tetragrid, matrix.getVertexes(geometryOutput))
def transformGeometryOutput(self, geometryOutput): 'Transform the geometry output by the local matrix4x4.' if self.getMatrix4X4() != None: matrix.transformVector3sByMatrix( self.getMatrix4X4().tetragrid, matrix.getVertexes(geometryOutput))