Esempio n. 1
0
	def getVertices(self):
		"Get all vertices."
		if self.xmlElement == None:
			return self.vertices
		if self.transformedVertices == None:
			self.transformedVertices = matrix.getTransformedVector3s(self.getMatrixChainTetragrid(), self.vertices)
		return self.transformedVertices
Esempio n. 2
0
	def getTransformedPaths(self):
		"Get all transformed paths."
		if self.xmlElement == None:
			return dictionary.getAllPaths([self.vertexes], self)
		chainTetragrid = self.getMatrixChainTetragrid()
		if self.oldChainTetragrid != chainTetragrid:
			self.oldChainTetragrid = chainTetragrid
			self.transformedPath = None
		if self.transformedPath == None:
			self.transformedPath = matrix.getTransformedVector3s(chainTetragrid, self.vertexes)
		return dictionary.getAllTransformedPaths([self.transformedPath], self)
Esempio n. 3
0
	def getTransformedVertexes(self):
		"Get all transformed vertexes."
		if self.xmlElement == None:
			return dictionary.getAllVertexes(self.vertexes, self)
		chainTetragrid = self.getMatrixChainTetragrid()
		if self.oldChainTetragrid != chainTetragrid:
			self.oldChainTetragrid = chainTetragrid
			self.transformedVertexes = None
		if self.transformedVertexes == None:
			self.setEdgesForAllFaces()
			self.transformedVertexes = matrix.getTransformedVector3s(chainTetragrid, self.vertexes)
		return dictionary.getAllTransformedVertexes(self.transformedVertexes, self)
Esempio n. 4
0
	def getTransformedVertexes(self):
		'Get all transformed vertexes.'
		if self.xmlElement == None:
			return dictionary.getAllVertexes(self.vertexes, self)
		chainTetragrid = self.getMatrixChainTetragrid()
		if self.oldChainTetragrid != chainTetragrid:
			self.oldChainTetragrid = chainTetragrid
			self.transformedVertexes = None
		if self.transformedVertexes == None:
			self.setEdgesForAllFaces()
			self.transformedVertexes = matrix.getTransformedVector3s(chainTetragrid, self.vertexes)
		return dictionary.getAllTransformedVertexes(self.transformedVertexes, self)