OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::TriangleSelector::ClippingPlane Struct Reference

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

Public Member Functions

 ClippingPlane ()
 ClippingPlane (const std::array< float, 4 > &clp)
bool is_active () const
bool is_mesh_point_clipped (const Vec3f &point) const

Public Attributes

Vec3f normal
float offset

Detailed Description

Constructor & Destructor Documentation

◆ ClippingPlane() [1/2]

Slic3r::TriangleSelector::ClippingPlane::ClippingPlane ( )
inline
94: normal{0.f, 0.f, 1.f}, offset{FLT_MAX} {};
float offset
Definition TriangleSelector.hpp:93
Vec3f normal
Definition TriangleSelector.hpp:92

References normal, and offset.

◆ ClippingPlane() [2/2]

Slic3r::TriangleSelector::ClippingPlane::ClippingPlane ( const std::array< float, 4 > & clp)
inlineexplicit
95: normal{clp[0], clp[1], clp[2]}, offset{clp[3]} {}

References normal, and offset.

Member Function Documentation

◆ is_active()

bool Slic3r::TriangleSelector::ClippingPlane::is_active ( ) const
inline
97{ return offset != FLT_MAX; }

References offset.

Referenced by Slic3r::TriangleSelector::bucket_fill_select_triangles(), Slic3r::TriangleSelector::is_facet_clipped(), Slic3r::is_mesh_point_not_clipped(), and Slic3r::TriangleSelector::seed_fill_select_triangles().

Here is the caller graph for this function:

◆ is_mesh_point_clipped()

bool Slic3r::TriangleSelector::ClippingPlane::is_mesh_point_clipped ( const Vec3f & point) const
inline
99{ return normal.dot(point) - offset > 0.f; }

References normal, and offset.

Referenced by Slic3r::TriangleSelector::is_facet_clipped(), and Slic3r::is_mesh_point_not_clipped().

Here is the caller graph for this function:

Member Data Documentation

◆ normal

Vec3f Slic3r::TriangleSelector::ClippingPlane::normal

◆ offset

float Slic3r::TriangleSelector::ClippingPlane::offset

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