ISS_SimplexQuery< ISS > Class Template Reference

Simplex queries on an indexed simplex set. More...

#include <ISS_SimplexQuery.h>

List of all members.

Public Types

typedef IssType::Number Number
 The number type.
typedef IssType::Vertex Vertex
 A vertex.
typedef geom::BBox< ISS::N,
Number
BBox
 A bounding box.

Public Member Functions

Constructors etc.

 ISS_SimplexQuery (const IssType &iss)
 Construct from the indexed simplex set.
void build ()
 Build the bounding box tree. Call this after the simplicial complex changes.
 ~ISS_SimplexQuery ()
 Destructor has no effect on the indexed simplex set.
Queries

template<typename IntOutIter >
void computePointQuery (IntOutIter iter, const Vertex &x) const
 Get the indices of the simplices that contain the point.
template<typename IntOutIter >
void computeWindowQuery (IntOutIter iter, const BBox &window) const
 Get the indices of the simplices whose bounding boxes overlap the window.
int computeMinimumDistanceAndIndex (const Vertex &x, Number *minDistance) const
 Return the index of the simplex of minimum distance.
int computeMinimumDistanceIndex (const Vertex &x) const
 Return the index of the simplex of minimum distance.
Number computeMinimumDistance (const Vertex &x) const
 Return the minimum distance.

Detailed Description

template<class ISS>
class ISS_SimplexQuery< ISS >

Simplex queries on an indexed simplex set.

Parameters:
ISS is the indexed simplex set.

This class stores a constant reference to an indexed simplex set.


Constructor & Destructor Documentation

template<class ISS>
ISS_SimplexQuery< ISS >::ISS_SimplexQuery ( const IssType &  iss  )  [inline]

Construct from the indexed simplex set.

Parameters:
iss is the indexed simplex set.

Member Function Documentation

template<class ISS>
Number ISS_SimplexQuery< ISS >::computeMinimumDistance ( const Vertex x  )  const

Return the minimum distance.

If M = N, the signed distance is used. If M < N, we use the unsigned distance.

template<class ISS>
int ISS_SimplexQuery< ISS >::computeMinimumDistanceAndIndex ( const Vertex x,
Number minDistance 
) const

Return the index of the simplex of minimum distance.

If M = N, the signed distance is used. If M < N, we use the unsigned distance.

Referenced by ISS_SimplexQuery< SurfaceManifold >::computeMinimumDistanceIndex().

template<class ISS>
int ISS_SimplexQuery< ISS >::computeMinimumDistanceIndex ( const Vertex x  )  const [inline]

Return the index of the simplex of minimum distance.

If M = N, the signed distance is used. If M < N, we use the unsigned distance.


The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:14:58 2016 for Computational Geometry Package by  doxygen 1.6.3