RINGMesh  Version 5.0.0
A programming library for geological model meshes
RINGMesh::SurfaceAABBTree< DIMENSION >::DistanceToTriangle Class Reference

Public Member Functions

 DistanceToTriangle (const SurfaceMeshBase< DIMENSION > &mesh)
 
std::tuple< double, vecn< DIMENSION > > operator() (const vecn< DIMENSION > &query, index_t cur_box) const
 

Private Attributes

const SurfaceMeshBase< DIMENSION > & mesh_
 

Detailed Description

template<index_t DIMENSION>
class RINGMesh::SurfaceAABBTree< DIMENSION >::DistanceToTriangle

This class is used as functor in closest_element_box() to compute the distance between a point and a triangle

Definition at line 352 of file aabb.h.

Constructor & Destructor Documentation

◆ DistanceToTriangle()

template<index_t DIMENSION>
RINGMesh::SurfaceAABBTree< DIMENSION >::DistanceToTriangle::DistanceToTriangle ( const SurfaceMeshBase< DIMENSION > &  mesh)
inlineexplicit

Definition at line 355 of file aabb.h.

Member Function Documentation

◆ operator()()

template<index_t DIMENSION>
std::tuple< double, vecn< DIMENSION > > RINGMesh::SurfaceAABBTree< DIMENSION >::DistanceToTriangle::operator() ( const vecn< DIMENSION > &  query,
index_t  cur_box 
) const

Definition at line 401 of file aabb.cpp.

Member Data Documentation

◆ mesh_

template<index_t DIMENSION>
const SurfaceMeshBase< DIMENSION >& RINGMesh::SurfaceAABBTree< DIMENSION >::DistanceToTriangle::mesh_
private

Definition at line 365 of file aabb.h.


The documentation for this class was generated from the following files: