Skip to content

Commit

Permalink
Use better variable naming
Browse files Browse the repository at this point in the history
CURA-10561
  • Loading branch information
casperlamboo committed Oct 30, 2023
1 parent 4f649e5 commit f8bb30b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cura/Snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ def isometricSnapshot(width: int = 300, height: int = 300) -> Optional[QImage]:
camera = Camera("snapshot")

# find local x and y directional vectors of the camera
s = iso_view_dir.cross(Vector.Unit_Y).normalized()
u = s.cross(iso_view_dir).normalized()
tangent_space_x_direction = iso_view_dir.cross(Vector.Unit_Y).normalized()
tangent_space_y_direction = tangent_space_x_direction.cross(iso_view_dir).normalized()

# find extreme screen space coords of the scene
x_points = [p.dot(s) for p in bounds.points]
y_points = [p.dot(u) for p in bounds.points]
x_points = [p.dot(tangent_space_x_direction) for p in bounds.points]
y_points = [p.dot(tangent_space_y_direction) for p in bounds.points]
min_x = min(x_points)
max_x = max(x_points)
min_y = min(y_points)
Expand Down

0 comments on commit f8bb30b

Please sign in to comment.