mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
New experimental --gcode-arcs options to generate G2/G3 commands. #23
This commit is contained in:
parent
7f341cfcd3
commit
6d6533831e
13 changed files with 333 additions and 21 deletions
|
@ -429,7 +429,7 @@ sub _line_intersection {
|
|||
# Take this test away and the line segments are
|
||||
# turned into lines going from infinite to another.
|
||||
# bounding_box_intersect() defined later in this chapter.
|
||||
return "out of bounding box" unless bounding_box_intersect( 2, @box_a, @box_b );
|
||||
###return "out of bounding box" unless bounding_box_intersect( 2, @box_a, @box_b );
|
||||
}
|
||||
elsif ( @_ == 4 ) { # The parametric form.
|
||||
$x0 = $x2 = 0;
|
||||
|
@ -509,7 +509,7 @@ sub _line_intersection {
|
|||
my $h10 = $dx10 ? ($x - $x0) / $dx10 : ($dy10 ? ($y - $y0) / $dy10 : 1);
|
||||
my $h32 = $dx32 ? ($x - $x2) / $dx32 : ($dy32 ? ($y - $y2) / $dy32 : 1);
|
||||
|
||||
return [[$x, $y], $h10 >= 0 && $h10 <= 1 && $h32 >= 0 && $h32 <= 1];
|
||||
return [Slic3r::Point->new($x, $y), $h10 >= 0 && $h10 <= 1 && $h32 >= 0 && $h32 <= 1];
|
||||
}
|
||||
|
||||
# 2D
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue