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

Index into ExPolygons Identify expolygon, its contour (or hole) and point. More...

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

Public Member Functions

bool is_contour () const
bool is_hole () const
uint32_t hole_index () const

Public Attributes

uint32_t expolygons_index
uint32_t polygon_index
uint32_t point_index

Detailed Description

Index into ExPolygons Identify expolygon, its contour (or hole) and point.

Member Function Documentation

◆ hole_index()

uint32_t Slic3r::ExPolygonsIndex::hole_index ( ) const
inline
28{ return polygon_index - 1; }
uint32_t polygon_index
Definition ExPolygonsIndex.hpp:21

References polygon_index.

Referenced by priv::find_closest_point_index(), and anonymous_namespace{TextLines.cpp}::select_closest_contour().

Here is the caller graph for this function:

◆ is_contour()

bool Slic3r::ExPolygonsIndex::is_contour ( ) const
inline
26{ return polygon_index == 0; }

References polygon_index.

Referenced by priv::find_closest_point_index(), and anonymous_namespace{TextLines.cpp}::select_closest_contour().

Here is the caller graph for this function:

◆ is_hole()

bool Slic3r::ExPolygonsIndex::is_hole ( ) const
inline
27{ return polygon_index != 0; }

References polygon_index.

Member Data Documentation

◆ expolygons_index

◆ point_index

◆ polygon_index

uint32_t Slic3r::ExPolygonsIndex::polygon_index

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