mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-06 01:56:08 +08:00
add trafo matrix to volumes
This commit is contained in:
parent
ee50835291
commit
e10fd143da
@ -979,6 +979,7 @@ ModelVolume::ModelVolume(ModelObject* object, const TriangleMesh &mesh)
|
|||||||
ModelVolume::ModelVolume(ModelObject* object, const ModelVolume &other)
|
ModelVolume::ModelVolume(ModelObject* object, const ModelVolume &other)
|
||||||
: name(other.name),
|
: name(other.name),
|
||||||
mesh(other.mesh),
|
mesh(other.mesh),
|
||||||
|
trafo(other.trafo),
|
||||||
config(other.config),
|
config(other.config),
|
||||||
input_file(other.input_file),
|
input_file(other.input_file),
|
||||||
input_file_obj_idx(other.input_file_obj_idx),
|
input_file_obj_idx(other.input_file_obj_idx),
|
||||||
@ -1000,6 +1001,7 @@ ModelVolume::swap(ModelVolume &other)
|
|||||||
{
|
{
|
||||||
std::swap(this->name, other.name);
|
std::swap(this->name, other.name);
|
||||||
std::swap(this->mesh, other.mesh);
|
std::swap(this->mesh, other.mesh);
|
||||||
|
std::swap(this->trafo, other.trafo);
|
||||||
std::swap(this->config, other.config);
|
std::swap(this->config, other.config);
|
||||||
std::swap(this->modifier, other.modifier);
|
std::swap(this->modifier, other.modifier);
|
||||||
|
|
||||||
|
@ -460,6 +460,7 @@ class ModelVolume
|
|||||||
|
|
||||||
std::string name; ///< Name of this ModelVolume object
|
std::string name; ///< Name of this ModelVolume object
|
||||||
TriangleMesh mesh; ///< The triangular model.
|
TriangleMesh mesh; ///< The triangular model.
|
||||||
|
TransformationMatrix trafo; ///< The transformation matrix of this volume
|
||||||
DynamicPrintConfig config;
|
DynamicPrintConfig config;
|
||||||
///< Configuration parameters specific to an object model geometry or a modifier volume,
|
///< Configuration parameters specific to an object model geometry or a modifier volume,
|
||||||
///< overriding the global Slic3r settings and the ModelObject settings.
|
///< overriding the global Slic3r settings and the ModelObject settings.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user