mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 03:13:39 +00:00
Fix preview after rotation in plater
This commit is contained in:
@@ -20,7 +20,7 @@ our @EXPORT_OK = qw(
|
||||
shortest_path collinear scale unscale merge_collinear_lines
|
||||
rad2deg_dir bounding_box_center line_intersects_any douglas_peucker
|
||||
polyline_remove_short_segments normal triangle_normal polygon_is_convex
|
||||
scaled_epsilon bounding_box_3D size_3D
|
||||
scaled_epsilon bounding_box_3D size_3D size_2D
|
||||
);
|
||||
|
||||
|
||||
@@ -689,6 +689,14 @@ sub bounding_box_center {
|
||||
);
|
||||
}
|
||||
|
||||
sub size_2D {
|
||||
my @bounding_box = bounding_box(@_);
|
||||
return (
|
||||
($bounding_box[X2] - $bounding_box[X1]),
|
||||
($bounding_box[Y2] - $bounding_box[Y1]),
|
||||
);
|
||||
}
|
||||
|
||||
# bounding_box_intersect($d, @a, @b)
|
||||
# Return true if the given bounding boxes @a and @b intersect
|
||||
# in $d dimensions. Used by line_intersection().
|
||||
|
||||
Reference in New Issue
Block a user