add trafo matrix to volumes

This commit is contained in:
Michael Kirsch 2019-03-30 21:44:30 +01:00 committed by Joseph Lenox
parent ee50835291
commit e10fd143da
2 changed files with 3 additions and 0 deletions

View File

@ -979,6 +979,7 @@ ModelVolume::ModelVolume(ModelObject* object, const TriangleMesh &mesh)
ModelVolume::ModelVolume(ModelObject* object, const ModelVolume &other)
: name(other.name),
mesh(other.mesh),
trafo(other.trafo),
config(other.config),
input_file(other.input_file),
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->mesh, other.mesh);
std::swap(this->trafo, other.trafo);
std::swap(this->config, other.config);
std::swap(this->modifier, other.modifier);

View File

@ -460,6 +460,7 @@ class ModelVolume
std::string name; ///< Name of this ModelVolume object
TriangleMesh mesh; ///< The triangular model.
TransformationMatrix trafo; ///< The transformation matrix of this volume
DynamicPrintConfig config;
///< Configuration parameters specific to an object model geometry or a modifier volume,
///< overriding the global Slic3r settings and the ModelObject settings.