mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Refactoring: moved slicing code to new TriangleMesh class, leaving in STL just what's needed to read that particular input format. Slic3r will now warn if model is not manifold. #16
This commit is contained in:
23
lib/Slic3r/TriangleMesh/IntersectionLine.pm
Normal file
23
lib/Slic3r/TriangleMesh/IntersectionLine.pm
Normal file
@@ -0,0 +1,23 @@
|
||||
package Slic3r::TriangleMesh::IntersectionLine;
|
||||
use Moo;
|
||||
|
||||
has 'a' => (is => 'ro', required => 1);
|
||||
has 'b' => (is => 'ro', required => 1);
|
||||
has 'a_id' => (is => 'ro', required => 1);
|
||||
has 'b_id' => (is => 'ro', required => 1);
|
||||
has 'facet_index' => (is => 'ro', required => 1);
|
||||
has 'prev_facet_index' => (is => 'ro', required => 0);
|
||||
has 'next_facet_index' => (is => 'ro', required => 0);
|
||||
has 'facet_edge' => (is => 'ro', default => sub {0});
|
||||
|
||||
sub points {
|
||||
my $self = shift;
|
||||
return [$self->a, $self->b];
|
||||
}
|
||||
|
||||
sub line {
|
||||
my $self = shift;
|
||||
return Slic3r::Line->new($self->a, $self->b);
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user