mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 14:30:41 +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)
|
||||
: 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);
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user