Example #1
0
def getMinimumByPaths(elementNode):
    'Get minimum of the transformed paths of the xmlObject of the elementNode.'
    return euclidean.getMinimumByVector3Paths(
        elementNode.xmlObject.getTransformedPaths())
Example #2
0
def getCenterByPaths(elementNode):
    'Get center of the transformed paths of the xmlObject of the elementNode.'
    transformedPaths = elementNode.xmlObject.getTransformedPaths()
    return 0.5 * (euclidean.getMaximumByVector3Paths(transformedPaths) +
                  euclidean.getMinimumByVector3Paths(transformedPaths))
Example #3
0
def getExtentByPaths(elementNode):
    'Get extent of the transformed paths of the xmlObject of the elementNode.'
    transformedPaths = elementNode.xmlObject.getTransformedPaths()
    return euclidean.getMaximumByVector3Paths(
        transformedPaths) - euclidean.getMinimumByVector3Paths(
            transformedPaths)
Example #4
0
def getBoundingBoxByPaths(elementNode):
    'Get bounding box of the transformed paths of the xmlObject of the elementNode.'
    transformedPaths = elementNode.xmlObject.getTransformedPaths()
    maximum = euclidean.getMaximumByVector3Paths(transformedPaths)
    minimum = euclidean.getMinimumByVector3Paths(transformedPaths)
    return [minimum, maximum]
Example #5
0
def getMinimumByPaths(elementNode):
	'Get minimum of the transformed paths of the xmlObject of the elementNode.'
	return euclidean.getMinimumByVector3Paths(elementNode.xmlObject.getTransformedPaths())
Example #6
0
def getExtentByPaths(elementNode):
	'Get extent of the transformed paths of the xmlObject of the elementNode.'
	transformedPaths = elementNode.xmlObject.getTransformedPaths()
	return euclidean.getMaximumByVector3Paths(transformedPaths) - euclidean.getMinimumByVector3Paths(transformedPaths)
Example #7
0
def getCenterByPaths(elementNode):
	'Get center of the transformed paths of the xmlObject of the elementNode.'
	transformedPaths = elementNode.xmlObject.getTransformedPaths()
	return 0.5 * (euclidean.getMaximumByVector3Paths(transformedPaths) + euclidean.getMinimumByVector3Paths(transformedPaths))
Example #8
0
def getBoundingBoxByPaths(elementNode):
	'Get bounding box of the transformed paths of the xmlObject of the elementNode.'
	transformedPaths = elementNode.xmlObject.getTransformedPaths()
	maximum = euclidean.getMaximumByVector3Paths(transformedPaths)
	minimum = euclidean.getMinimumByVector3Paths(transformedPaths)
	return [minimum, maximum]