Parametric surface patches.
More...
#include <surface.h>
|
| virtual Vector | Vertex (const double &, const double &) const |
| | Compute a point on the patch.
|
| |
| virtual Vector | Normal (const double &, const double &) const |
| | Compute the normal at a given point on the patch.
|
| |
| virtual void | Tangents (const double &, const double &, Vector &, Vector &) const |
| | Compute the partial derivatives at a given point on the patch.
|
| |
| virtual Mesh | GetMesh (int, int) const |
| | Create the mesh of the patch.
|
| |
| virtual double | Gaussian (const double &, const double &) const |
| | Compute the Gaussian curvature.
|
| |
|
|
static const double | Epsilon = 1.0e-6 |
| | Epsilon for derivatives.
|
| |
Parametric surface patches.
◆ FundamentalForms()
| void ParametricSurface::FundamentalForms |
( |
const double & | u, |
|
|
const double & | v, |
|
|
Vector & | efg, |
|
|
Vector & | lmn ) const |
|
protected |
Compute the first and second fundamental forms.
- Parameters
-
| u,v | Coordinates. |
| efg,lmn | Fundamental forms compacted into two vectors |
◆ Gaussian()
| double ParametricSurface::Gaussian |
( |
const double & | u, |
|
|
const double & | v ) const |
|
virtual |
Compute the Gaussian curvature.
- Parameters
-
◆ GetMesh()
| Mesh ParametricSurface::GetMesh |
( |
int | nu, |
|
|
int | nv ) const |
|
virtual |
Create the mesh of the patch.
- Parameters
-
◆ Normal()
| Vector ParametricSurface::Normal |
( |
const double & | u, |
|
|
const double & | v ) const |
|
virtual |
Compute the normal at a given point on the patch.
- Parameters
-
◆ Tangents()
| void ParametricSurface::Tangents |
( |
const double & | u, |
|
|
const double & | v, |
|
|
Vector & | tu, |
|
|
Vector & | tv ) const |
|
virtual |
Compute the partial derivatives at a given point on the patch.
- Parameters
-
| u,v | Coordinates. |
| tu,tv | Tangent vectors, not normalized. |
◆ Vertex()
| Vector ParametricSurface::Vertex |
( |
const double & | u, |
|
|
const double & | v ) const |
|
virtual |
Compute a point on the patch.
- Parameters
-