Skip to content

Commit 5ae919c

Browse files
Use get_local_axis_normalized instead of handrolling it
1 parent 2198adc commit 5ae919c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lasercut/helper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ def transform(part, referentiel_face, transform_matrix=None, y_invert = False):
148148
# http://gamedev.stackexchange.com/questions/20097/how-to-calculate-a-3x3-rotation-matrix-from-2-direction-vectors
149149
# http://www.freecadweb.org/api/Vector.html
150150
def get_matrix_transform(face):
151-
x_local, y_local_not_normalized, z_local_not_normalized = get_local_axis(face)
152-
y_local = y_local_not_normalized.normalize()
153-
z_local = z_local_not_normalized.normalize()
151+
x_local, y_local, z_local = get_local_axis_normalized(face)
154152

155153
m = FreeCAD.Matrix()
156154
if z_local is not None:

0 commit comments

Comments
 (0)