>
Differential geometry operatorsGTS Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <gts.h> |
|
Computes the Discrete Gaussian Curvature approximation at v.
This approximation is from the paper: Discrete Differential-Geometry Operators for Triangulated 2-Manifolds Mark Meyer, Mathieu Desbrun, Peter Schroder, Alan H. Barr VisMath '02, Berlin (Germany) http://www-grail.usc.edu/pubs.html
v : | a GtsVertex. |
s : | a GtsSurface. |
Kg : | the Discrete Gaussian Curvature approximation at v. |
Returns : | TRUE if the operator could be evaluated, FALSE if the evaluation failed for some reason (v is boundary or is the endpoint of a non-manifold edge.) |
|
Computes the Discrete Mean Curvature Normal approximation at v. The mean curvature at v is half the magnitude of the vector Kh.
Note: the normal computed is not unit length, and may point either into or out of the surface, depending on the curvature at v. It is the responsibility of the caller of the function to use the mean curvature normal appropriately.
This approximation is from the paper: Discrete Differential-Geometry Operators for Triangulated 2-Manifolds Mark Meyer, Mathieu Desbrun, Peter Schroder, Alan H. Barr VisMath '02, Berlin (Germany) http://www-grail.usc.edu/pubs.html
v : | a GtsVertex. |
s : | a GtsSurface. |
n : | |
Returns : | TRUE if the operator could be evaluated, FALSE if the evaluation failed for some reason (v is boundary or is the endpoint of a non-manifold edge.) |
void gts_vertex_principal_curvatures ( |
Computes the principal curvatures at a point given the mean and Gaussian curvatures at that point.
The mean curvature can be computed as one-half the magnitude of the vector computed by gts_vertex_mean_curvature_normal().
The Gaussian curvature can be computed with gts_vertex_gaussian_curvature().
Kh : | mean curvature. |
Kg : | Gaussian curvature. |
K1 : | first principal curvature. |
K2 : | second principal curvature. |
void gts_vertex_principal_directions (GtsVertex *v, GtsSurface *s, |
Computes the principal curvature directions at a point given Kh and Kg, the mean curvature normal and Gaussian curvatures at that point, computed with gts_vertex_mean_curvature_normal() and gts_vertex_gaussian_curvature(), respectively.
Note that this computation is very approximate and tends to be unstable. Smoothing of the surface or the principal directions may be necessary to achieve reasonable results.
v : | a GtsVertex. |
s : | a GtsSurface. |
Kh : | mean curvature normal (a |
Kg : | Gaussian curvature (a gdouble). |
e1 : | first principal curvature direction (direction of largest curvature). |
e2 : | second principal curvature direction. |
<<< Previous Page | Home | Up | Next Page >>> |
Delaunay and constrained Delaunay triangulations | Progressive and Hierarchical surfaces |