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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-02-27 00:03:03 +0300
committerbubnikv <bubnikv@gmail.com>2017-02-27 00:03:03 +0300
commit5b98f1a068cdfd3b01015b6597a8928f475c97ed (patch)
tree28fd6234c2cdbe9501139c404f78f00af4cf6821 /xs/src/libslic3r/Model.hpp
parentefb02f71f046f91b38fdb13047c514f73fd31d51 (diff)
Some utility methods to help loading models from the disk.
Not quite sucessfull try to fix the crahes on mesh cut.
Diffstat (limited to 'xs/src/libslic3r/Model.hpp')
-rw-r--r--xs/src/libslic3r/Model.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Model.hpp b/xs/src/libslic3r/Model.hpp
index 5e1e29cd5..9334fc8f2 100644
--- a/xs/src/libslic3r/Model.hpp
+++ b/xs/src/libslic3r/Model.hpp
@@ -48,6 +48,8 @@ public:
void swap(Model &other);
~Model();
ModelObject* add_object();
+ ModelObject* add_object(const char *name, const char *path, const TriangleMesh &mesh);
+ ModelObject* add_object(const char *name, const char *path, TriangleMesh &&mesh);
ModelObject* add_object(const ModelObject &other, bool copy_volumes = true);
void delete_object(size_t idx);
void clear_objects();
@@ -135,6 +137,7 @@ public:
Model* get_model() const { return this->model; };
ModelVolume* add_volume(const TriangleMesh &mesh);
+ ModelVolume* add_volume(TriangleMesh &&mesh);
ModelVolume* add_volume(const ModelVolume &volume);
void delete_volume(size_t idx);
void clear_volumes();
@@ -206,6 +209,7 @@ private:
t_model_material_id _material_id;
ModelVolume(ModelObject *object, const TriangleMesh &mesh);
+ ModelVolume(ModelObject *object, TriangleMesh &&mesh);
ModelVolume(ModelObject *object, const ModelVolume &other);
};