OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::Geometry::Lines2VDSegments< VD > Class Template Reference
Collaboration diagram for Slic3r::Geometry::Lines2VDSegments< VD >:

Public Member Functions

 Lines2VDSegments (const Lines &alines)
VD::segment_type operator[] (size_t idx) const

Private Attributes

const Lines & lines

Detailed Description

template<typename VD>
class Slic3r::Geometry::Lines2VDSegments< VD >

Constructor & Destructor Documentation

◆ Lines2VDSegments()

template<typename VD>
Slic3r::Geometry::Lines2VDSegments< VD >::Lines2VDSegments ( const Lines & alines)
inline
447: lines(alines) {}
Definition MedialAxis.cpp:445
const Lines & lines
Definition MedialAxis.cpp:454

References lines.

Member Function Documentation

◆ operator[]()

template<typename VD>
VD::segment_type Slic3r::Geometry::Lines2VDSegments< VD >::operator[] ( size_t idx) const
inline
448 {
449 return typename VD::segment_type(
450 typename VD::point_type(typename VD::coord_type(lines[idx].a(0)), typename VD::coord_type(lines[idx].a(1))),
451 typename VD::point_type(typename VD::coord_type(lines[idx].b(0)), typename VD::coord_type(lines[idx].b(1))));
452 }
boost::polygon::point_data< voronoi_diagram_type::coordinate_type > point_type
Definition Voronoi.hpp:35
double coord_type
Definition Voronoi.hpp:33
boost::polygon::segment_data< voronoi_diagram_type::coordinate_type > segment_type
Definition Voronoi.hpp:36

References lines.

Member Data Documentation

◆ lines

template<typename VD>
const Lines& Slic3r::Geometry::Lines2VDSegments< VD >::lines
private

Referenced by Lines2VDSegments(), and operator[]().


The documentation for this class was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Geometry/MedialAxis.cpp