Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs/lib
diff options
context:
space:
mode:
authorY. Sapir <yasapir@gmail.com>2014-05-06 12:07:18 +0400
committerY. Sapir <yasapir@gmail.com>2014-05-25 00:50:29 +0400
commit8da0bded1d0e6c08e22c9a3c5921495d9787f4b2 (patch)
treee8fe5c218e6ba53e3c1ec5397990fddd22d739d9 /xs/lib
parent3df2488eca56bcafac8ec92ef99b246b30eaf7ac (diff)
Move Print object storage to C++. (along with its subobjects)
Diffstat (limited to 'xs/lib')
-rw-r--r--xs/lib/Slic3r/XS.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/xs/lib/Slic3r/XS.pm b/xs/lib/Slic3r/XS.pm
index ddecad87e..8131fb6f1 100644
--- a/xs/lib/Slic3r/XS.pm
+++ b/xs/lib/Slic3r/XS.pm
@@ -18,6 +18,11 @@ use overload
'@{}' => sub { $_[0]->arrayref },
'fallback' => 1;
+package Slic3r::Point3;
+use overload
+ '@{}' => sub { [ $_[0]->x, $_[0]->y, $_[0]->z ] }, #,
+ 'fallback' => 1;
+
package Slic3r::Pointf;
use overload
'@{}' => sub { [ $_[0]->x, $_[0]->y ] }, #,
@@ -177,11 +182,16 @@ package main;
for my $class (qw(
Slic3r::Config
Slic3r::Config::Print
+ Slic3r::Config::PrintRegion
Slic3r::ExPolygon
Slic3r::ExtrusionLoop
Slic3r::ExtrusionPath
Slic3r::ExtrusionPath::Collection
Slic3r::Geometry::BoundingBoxf3
+ Slic3r::GCode::PlaceholderParser
+ Slic3r::Layer
+ Slic3r::Layer::Region
+ Slic3r::Layer::Support
Slic3r::Line
Slic3r::Model
Slic3r::Model::Instance
@@ -189,10 +199,14 @@ for my $class (qw(
Slic3r::Model::Object
Slic3r::Model::Volume
Slic3r::Point
+ Slic3r::Point3
Slic3r::Pointf
Slic3r::Pointf3
Slic3r::Polygon
Slic3r::Polyline
+ Slic3r::Print
+ Slic3r::Print::Object
+ Slic3r::Print::Region
Slic3r::Surface
Slic3r::TriangleMesh
))