Removed unused methods

This commit is contained in:
Enrico Turri 2018-08-28 15:19:53 +02:00
parent 055e90602e
commit cfe49a20ad
4 changed files with 0 additions and 26 deletions

View file

@ -743,21 +743,6 @@ void ModelObject::rotate(float angle, const Vec3d& axis)
this->invalidate_bounding_box(); this->invalidate_bounding_box();
} }
void ModelObject::transform(const float* matrix3x4)
{
if (matrix3x4 == nullptr)
return;
for (ModelVolume* v : volumes)
{
v->mesh.transform(matrix3x4);
v->m_convex_hull.transform(matrix3x4);
}
this->origin_translation = Vec3d::Zero();
this->invalidate_bounding_box();
}
void ModelObject::mirror(const Axis &axis) void ModelObject::mirror(const Axis &axis)
{ {
for (ModelVolume *v : this->volumes) for (ModelVolume *v : this->volumes)

View file

@ -122,7 +122,6 @@ public:
void scale(const Vec3d &versor); void scale(const Vec3d &versor);
void rotate(float angle, const Axis &axis); void rotate(float angle, const Axis &axis);
void rotate(float angle, const Vec3d& axis); void rotate(float angle, const Vec3d& axis);
void transform(const float* matrix3x4); // <<<<<<<<< FIXME (using eigen)
void mirror(const Axis &axis); void mirror(const Axis &axis);
size_t materials_count() const; size_t materials_count() const;
size_t facets_count() const; size_t facets_count() const;

View file

@ -279,15 +279,6 @@ void TriangleMesh::mirror(const Axis &axis)
stl_invalidate_shared_vertices(&this->stl); stl_invalidate_shared_vertices(&this->stl);
} }
void TriangleMesh::transform(const float* matrix3x4)
{
if (matrix3x4 == nullptr)
return;
stl_transform(&stl, const_cast<float*>(matrix3x4));
stl_invalidate_shared_vertices(&stl);
}
void TriangleMesh::align_to_origin() void TriangleMesh::align_to_origin()
{ {
this->translate( this->translate(

View file

@ -48,7 +48,6 @@ public:
void mirror_x() { this->mirror(X); } void mirror_x() { this->mirror(X); }
void mirror_y() { this->mirror(Y); } void mirror_y() { this->mirror(Y); }
void mirror_z() { this->mirror(Z); } void mirror_z() { this->mirror(Z); }
void transform(const float* matrix3x4);
void align_to_origin(); void align_to_origin();
void rotate(double angle, Point* center); void rotate(double angle, Point* center);
TriangleMeshPtrs split() const; TriangleMeshPtrs split() const;