Added Vec3d ModelInstance::transform_vector() method

This commit is contained in:
Enrico Turri 2018-09-06 09:16:32 +02:00
parent b9287d51dd
commit c8f1369824
4 changed files with 17 additions and 9 deletions

View file

@ -239,6 +239,8 @@ public:
BoundingBoxf3 transform_mesh_bounding_box(const TriangleMesh* mesh, bool dont_translate = false) const;
// Transform an external bounding box.
BoundingBoxf3 transform_bounding_box(const BoundingBoxf3 &bbox, bool dont_translate = false) const;
// Transform an external vector.
Vec3d transform_vector(const Vec3d& v, bool dont_translate = false) const;
// To be called on an external polygon. It does not translate the polygon, only rotates and scales.
void transform_polygon(Polygon* polygon) const;