OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::PrintInstance Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Print.hpp>

Collaboration diagram for Slic3r::PrintInstance:

Public Member Functions

BoundingBoxf3 get_bounding_box () const
Polygon get_convex_hull_2d ()
Point shift_without_plate_offset () const

Public Attributes

PrintObject * print_object
const ModelInstance * model_instance
Point shift
size_t id {0}
size_t unique_id {0}

Detailed Description

Member Function Documentation

◆ get_bounding_box()

BoundingBoxf3 Slic3r::PrintInstance::get_bounding_box ( ) const
7118 {
7119 return print_object->model_object()->instance_bounding_box(*model_instance, false);
7120}
const ModelInstance * model_instance
Definition Print.hpp:243
PrintObject * print_object
Definition Print.hpp:241

References get_bounding_box(), model_instance, and print_object.

Referenced by get_bounding_box(), and Slic3r::TimelapsePosPicker::get_real_instance_bbox().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_convex_hull_2d()

Polygon Slic3r::PrintInstance::get_convex_hull_2d ( )
7122 {
7123 Polygon poly = print_object->model_object()->convex_hull_2d(model_instance->get_matrix());
7124 poly.douglas_peucker(scale_(print_object->print()->config().exclude_object_tolerance.value));
7125 return poly;
7126}
#define scale_(val)
Definition libslic3r.h:106
void poly(std::vector< std::pair< Vec2d, Vec2d > > &out, std::initializer_list< Vec2d > p)
Definition DesignSketchTool.cpp:7751
Slic3r::Polygon Polygon
Definition Emboss.cpp:101

References get_convex_hull_2d(), model_instance, print_object, and scale_.

Referenced by get_convex_hull_2d().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shift_without_plate_offset()

Point Slic3r::PrintInstance::shift_without_plate_offset ( ) const
7130{
7131 const Print* print = print_object->print();
7132 const Vec3d plate_offset = print->get_plate_origin();
7133 return shift - Point(scaled(plate_offset.x()), scaled(plate_offset.y()));
7134}
Kernel::Point_3 Point
Definition MeshRepair.cpp:81
BoundingBox scaled(const BoundingBoxf &bb)
Definition BoundingBox.hpp:284
Eigen::Matrix< double, 3, 1, Eigen::DontAlign > Vec3d
Definition Point.hpp:68
Point shift
Definition Print.hpp:245

References Slic3r::Print::get_plate_origin(), print_object, Slic3r::scaled(), shift, and shift_without_plate_offset().

Referenced by Slic3r::append_and_translate(), Slic3r::append_and_translate(), Slic3r::append_and_translate(), and shift_without_plate_offset().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ id

size_t Slic3r::PrintInstance::id {0}
252{0};

Referenced by Slic3r::GCode::instance_name().

◆ model_instance

◆ print_object

◆ shift

◆ unique_id

size_t Slic3r::PrintInstance::unique_id {0}
254{0};

The documentation for this struct was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Print.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Print.cpp