OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::anonymous_namespace{TextureDisplacement.cpp}::PatchRegion Struct Reference

Public Member Functions

bool contains (const Vec3f &pos, float tol) const

Public Attributes

indexed_triangle_set patch
AABBTreeIndirect::Tree3f tree

Detailed Description

Member Function Documentation

◆ contains()

bool Slic3r::anonymous_namespace{TextureDisplacement.cpp}::PatchRegion::contains ( const Vec3f & pos,
float tol ) const
inline
3717 {
3718 size_t hit = 0;
3719 Vec3f foot;
3721 pos, hit, foot);
3722 return d2 >= 0.f && d2 <= tol * tol;
3723 }
VectorType::Scalar squared_distance_to_indexed_triangle_set(const std::vector< VertexType > &vertices, const std::vector< IndexedFaceType > &faces, const TreeType &tree, const VectorType &point, size_t &hit_idx_out, Eigen::PlainObjectBase< VectorType > &hit_point_out)
Definition AABBTreeIndirect.hpp:801
Eigen::Matrix< float, 3, 1, Eigen::DontAlign > Vec3f
Definition Point.hpp:65
AABBTreeIndirect::Tree3f tree
Definition TextureDisplacement.cpp:3714
indexed_triangle_set patch
Definition TextureDisplacement.cpp:3713

References patch, Slic3r::AABBTreeIndirect::squared_distance_to_indexed_triangle_set(), and tree.

Here is the call graph for this function:

Member Data Documentation

◆ patch

indexed_triangle_set Slic3r::anonymous_namespace{TextureDisplacement.cpp}::PatchRegion::patch

Referenced by contains().

◆ tree

AABBTreeIndirect::Tree3f Slic3r::anonymous_namespace{TextureDisplacement.cpp}::PatchRegion::tree

Referenced by contains().


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