コード例 #1
0
ファイル: path.py プロジェクト: clothbot/DotSkeinforge
	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
コード例 #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)
コード例 #3
0
ファイル: trianglemesh.py プロジェクト: mccoyn/SkeinFactory
	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)
コード例 #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)