OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::AABBTreeIndirect::BoundingBoxWrapper Class Reference

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

Public Types

using BoundingBox = Eigen::AlignedBox<coord_t, 2>

Public Member Functions

 BoundingBoxWrapper (const size_t idx, const Slic3r::BoundingBox &bbox)
size_t idx () const
const BoundingBox & bbox () const
Point centroid () const

Private Attributes

size_t m_idx
BoundingBox m_bbox

Detailed Description

Member Typedef Documentation

◆ BoundingBox

Constructor & Destructor Documentation

◆ BoundingBoxWrapper()

Slic3r::AABBTreeIndirect::BoundingBoxWrapper::BoundingBoxWrapper ( const size_t idx,
const Slic3r::BoundingBox & bbox )
inline
231 :
232 m_idx(idx),
233 // Inflate the bounding box a bit to account for numerical issues.
size_t m_idx
Definition AABBTreeIndirect.hpp:239
BoundingBox m_bbox
Definition AABBTreeIndirect.hpp:240
size_t idx() const
Definition AABBTreeIndirect.hpp:235
const BoundingBox & bbox() const
Definition AABBTreeIndirect.hpp:236
#define SCALED_EPSILON
Definition libslic3r.h:109
Kernel::Point_3 Point
Definition MeshRepair.cpp:81

References bbox(), idx(), m_bbox, m_idx, and SCALED_EPSILON.

Here is the call graph for this function:

Member Function Documentation

◆ bbox()

const BoundingBox & Slic3r::AABBTreeIndirect::BoundingBoxWrapper::bbox ( ) const
inline
236{ return m_bbox; }

References m_bbox.

Referenced by BoundingBoxWrapper().

Here is the caller graph for this function:

◆ centroid()

Point Slic3r::AABBTreeIndirect::BoundingBoxWrapper::centroid ( ) const
inline
237{ return (m_bbox.min() + m_bbox.max()) / 2; }

References m_bbox.

◆ idx()

size_t Slic3r::AABBTreeIndirect::BoundingBoxWrapper::idx ( ) const
inline
235{ return m_idx; }

References m_idx.

Referenced by BoundingBoxWrapper().

Here is the caller graph for this function:

Member Data Documentation

◆ m_bbox

BoundingBox Slic3r::AABBTreeIndirect::BoundingBoxWrapper::m_bbox
private

Referenced by BoundingBoxWrapper(), bbox(), and centroid().

◆ m_idx

size_t Slic3r::AABBTreeIndirect::BoundingBoxWrapper::m_idx
private

Referenced by BoundingBoxWrapper(), and idx().


The documentation for this class was generated from the following file: