mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
Some utility methods to help loading models from the disk.
Not quite sucessfull try to fix the crahes on mesh cut.
This commit is contained in:
parent
efb02f71f0
commit
5b98f1a068
2 changed files with 70 additions and 2 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue