mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Added Vec3d ModelInstance::transform_vector() method
This commit is contained in:
parent
b9287d51dd
commit
c8f1369824
4 changed files with 17 additions and 9 deletions
|
@ -1016,6 +1016,11 @@ BoundingBoxf3 ModelInstance::transform_bounding_box(const BoundingBoxf3 &bbox, b
|
|||
return bbox.transformed(world_matrix(dont_translate));
|
||||
}
|
||||
|
||||
Vec3d ModelInstance::transform_vector(const Vec3d& v, bool dont_translate) const
|
||||
{
|
||||
return world_matrix(dont_translate) * v;
|
||||
}
|
||||
|
||||
void ModelInstance::transform_polygon(Polygon* polygon) const
|
||||
{
|
||||
polygon->rotate(this->rotation); // rotate around polygon origin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue