mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-31 16:41:59 +08:00
Use better variable naming
CURA-10561
This commit is contained in:
parent
4f649e57d1
commit
f8bb30b025
@ -53,12 +53,12 @@ class Snapshot:
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user