Geogram
Version 1.9.1-rc
A programming library of geometric algorithms
|
Computes an approximation of lfs (local feature size). More...
#include <geogram/delaunay/LFS.h>
Public Member Functions | |
LocalFeatureSize (index_t nb_pts, const double *pts) | |
Initializes lfs computation. More... | |
double | squared_lfs (const double *p) const |
Computes the squared local feature size at a query point. More... | |
index_t | nb_poles () const |
Gets the number of poles. More... | |
const double * | pole (index_t i) const |
Gets a reference to a pole. More... | |
Protected Member Functions | |
void | init (index_t nb_pts, const double *pts) |
Constructs the internal representation used to compute the local feature size. More... | |
Computes an approximation of lfs (local feature size).
Given a surface S and a point p in R^3, lfs(p) corresponds to the distance between p and the medial axis of S. Given a sampling of S, this class computes the distance to the nearest pole (a good approximation of lfs, see Amenta and Bern's paper).
|
inline |
|
protected |
Constructs the internal representation used to compute the local feature size.
[in] | nb_pts | number of points |
[in] | pts | pointer to the points coordinates, as a contiguous array of doubles. |
|
inline |
|
inline |
Gets a reference to a pole.
[in] | i | the index of the pole |
i
th pole
|
inline |