xmsgrid  1.0
xms::idx_tri Class Reference

provides indexing for the spatial index More...

Public Types

typedef const GmBstBox3d result_type
 

Public Member Functions

 idx_tri (const Pt3d *a_pts, const int *a_tris, double a_tol)
 
result_type operator() (size_t i) const
 calculates triangle extents based on a triangle index More...
 

Public Attributes

const Pt3dm_pts
 point locations
 
const int * m_tris
 triangles referencing point indexes
 
double m_tol
 tolerance used to expand extents of triangle
 

Detailed Description

provides indexing for the spatial index

Definition at line 63 of file GmTriSearch.cpp.

Member Typedef Documentation

◆ result_type

created to follow boost examples

Definition at line 66 of file GmTriSearch.cpp.

Constructor & Destructor Documentation

◆ idx_tri()

xms::idx_tri::idx_tri ( const Pt3d a_pts,
const int *  a_tris,
double  a_tol 
)
inlineexplicit

\ brief constructor

Parameters
[in]a_ptsPoint locations
[in]a_trisTriangles referencing point indexes
[in]a_tolTolerance for expanding triangle extents

Definition at line 71 of file GmTriSearch.cpp.

Member Function Documentation

◆ operator()()

result_type xms::idx_tri::operator() ( size_t  i) const
inline

calculates triangle extents based on a triangle index

Parameters
iindex.
Returns
result_type.

Definition at line 80 of file GmTriSearch.cpp.

References m_pts, m_tol, m_tris, xms::Pt3< T >::x, and xms::Pt3< T >::y.


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