Exemplo n.º 1
0
def scalePoints(points, prefix, xmlElement):
	"Scale the points."
	scaleDefaultVector3 = Vector3(1.0, 1.0, 1.0)
	scaleVector3 = matrix.getCumulativeVector3Remove(prefix, scaleDefaultVector3.copy(), xmlElement)
	if scaleVector3 == scaleDefaultVector3:
		return
	for point in points:
		point.x *= scaleVector3.x
		point.y *= scaleVector3.y
		point.z *= scaleVector3.z
Exemplo n.º 2
0
def scalePoints(points, prefix, xmlElement):
    "Scale the points."
    scaleDefaultVector3 = Vector3(1.0, 1.0, 1.0)
    scaleVector3 = matrix.getCumulativeVector3Remove(
        prefix, scaleDefaultVector3.copy(), xmlElement)
    if scaleVector3 == scaleDefaultVector3:
        return
    for point in points:
        point.x *= scaleVector3.x
        point.y *= scaleVector3.y
        point.z *= scaleVector3.z
Exemplo n.º 3
0
def translatePoints(points, prefix, xmlElement):
    "Translate the points."
    translateVector3 = matrix.getCumulativeVector3Remove(
        prefix, Vector3(), xmlElement)
    if abs(translateVector3) > 0.0:
        euclidean.translateVector3Path(points, translateVector3)
Exemplo n.º 4
0
def translatePoints(points, prefix, xmlElement):
	"Translate the points."
	translateVector3 = matrix.getCumulativeVector3Remove(prefix, Vector3(), xmlElement)
	if abs(translateVector3) > 0.0:
		euclidean.translateVector3Path(points, translateVector3)