OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::sla::Bridge Struct Reference

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

Inheritance diagram for Slic3r::sla::Bridge:
Collaboration diagram for Slic3r::sla::Bridge:

Public Member Functions

 Bridge (const Vec3d &j1, const Vec3d &j2, double r_mm=0.8)
double get_length () const
Vec3d get_dir () const

Public Attributes

double r = 0.8
Vec3d startp = Vec3d::Zero()
Vec3d endp = Vec3d::Zero()
long id = ID_UNSET

Static Public Attributes

static const constexpr long ID_UNSET = -1

Detailed Description

Constructor & Destructor Documentation

◆ Bridge()

Slic3r::sla::Bridge::Bridge ( const Vec3d & j1,
const Vec3d & j2,
double r_mm = 0.8 )
inline
180 : r{r_mm}, startp{j1}, endp{j2}
181 {}
Vec3d endp
Definition SupportTreeBuilder.hpp:176
Vec3d startp
Definition SupportTreeBuilder.hpp:176
double r
Definition SupportTreeBuilder.hpp:175

References endp, r, and startp.

Referenced by Slic3r::sla::DiffBridge::DiffBridge().

Here is the caller graph for this function:

Member Function Documentation

◆ get_dir()

Vec3d Slic3r::sla::Bridge::get_dir ( ) const
inline
184{ return (endp - startp).normalized(); }

References endp, and startp.

Referenced by Slic3r::sla::get_mesh().

Here is the caller graph for this function:

◆ get_length()

double Slic3r::sla::Bridge::get_length ( ) const
inline
183{ return (endp - startp).norm(); }

References endp, and startp.

Referenced by Slic3r::sla::get_mesh().

Here is the caller graph for this function:

Member Data Documentation

◆ endp

Vec3d Slic3r::sla::Bridge::endp = Vec3d::Zero()

◆ id

◆ ID_UNSET

◆ r

double Slic3r::sla::Bridge::r = 0.8

◆ startp

Vec3d Slic3r::sla::Bridge::startp = Vec3d::Zero()

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