OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::AABBTreeLines::detail::IndexedLinesDistancer< ALineType, ATreeType, AVectorType > Struct Template Reference

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

Collaboration diagram for Slic3r::AABBTreeLines::detail::IndexedLinesDistancer< ALineType, ATreeType, AVectorType >:

Public Types

using LineType = ALineType
using TreeType = ATreeType
using VectorType = AVectorType
using ScalarType = typename VectorType::Scalar

Public Member Functions

VectorType closest_point_to_origin (size_t primitive_index, ScalarType &squared_distance) const

Public Attributes

const std::vector< LineType > & lines
const TreeType & tree
const VectorType origin

Detailed Description

template<typename ALineType, typename ATreeType, typename AVectorType>
struct Slic3r::AABBTreeLines::detail::IndexedLinesDistancer< ALineType, ATreeType, AVectorType >

Member Typedef Documentation

◆ LineType

template<typename ALineType, typename ATreeType, typename AVectorType>
using Slic3r::AABBTreeLines::detail::IndexedLinesDistancer< ALineType, ATreeType, AVectorType >::LineType = ALineType

◆ ScalarType

template<typename ALineType, typename ATreeType, typename AVectorType>
using Slic3r::AABBTreeLines::detail::IndexedLinesDistancer< ALineType, ATreeType, AVectorType >::ScalarType = typename VectorType::Scalar

◆ TreeType

template<typename ALineType, typename ATreeType, typename AVectorType>
using Slic3r::AABBTreeLines::detail::IndexedLinesDistancer< ALineType, ATreeType, AVectorType >::TreeType = ATreeType

◆ VectorType

template<typename ALineType, typename ATreeType, typename AVectorType>
using Slic3r::AABBTreeLines::detail::IndexedLinesDistancer< ALineType, ATreeType, AVectorType >::VectorType = AVectorType

Member Function Documentation

◆ closest_point_to_origin()

template<typename ALineType, typename ATreeType, typename AVectorType>
VectorType Slic3r::AABBTreeLines::detail::IndexedLinesDistancer< ALineType, ATreeType, AVectorType >::closest_point_to_origin ( size_t primitive_index,
ScalarType & squared_distance ) const
inline
38 {
43 return nearest_point.template cast<ScalarType>();
44 }
double distance_to_squared(const L &line, const Vec< Dim< L >, Scalar< L > > &point, Vec< Dim< L >, Scalar< L > > *nearest_point)
Definition Line.hpp:46
auto cast(const BoundingBoxBase< Tin > &b)
Definition BoundingBox.hpp:299
const VectorType origin
Definition AABBTreeLines.hpp:35
const std::vector< LineType > & lines
Definition AABBTreeLines.hpp:32
ALineType LineType
Definition AABBTreeLines.hpp:27

References Slic3r::cast(), Slic3r::line_alg::distance_to_squared(), lines, and origin.

Here is the call graph for this function:

Member Data Documentation

◆ lines

template<typename ALineType, typename ATreeType, typename AVectorType>
const std::vector<LineType>& Slic3r::AABBTreeLines::detail::IndexedLinesDistancer< ALineType, ATreeType, AVectorType >::lines

Referenced by closest_point_to_origin().

◆ origin

template<typename ALineType, typename ATreeType, typename AVectorType>
const VectorType Slic3r::AABBTreeLines::detail::IndexedLinesDistancer< ALineType, ATreeType, AVectorType >::origin

Referenced by closest_point_to_origin().

◆ tree

template<typename ALineType, typename ATreeType, typename AVectorType>
const TreeType& Slic3r::AABBTreeLines::detail::IndexedLinesDistancer< ALineType, ATreeType, AVectorType >::tree

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