|
Core 1.0
|
A generic parametric surface patch. More...
#include <surface.h>
Public Member Functions | |
| 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. | |
Protected Member Functions | |
| void | FundamentalForms (const double &, const double &, Vector &, Vector &) const |
| Compute the first and second fundamental forms. | |
Static Protected Attributes | |
| static const double | Epsilon = 1.0e-6 |
| Epsilon for derivatives. | |
A generic parametric surface patch.
|
protected |
Compute the first and second fundamental forms.
| u,v | Coordinates. |
| efg,lmn | Fundamental forms compacted into two vectors |
|
virtual |
Compute the Gaussian curvature.
| u,v | Coordinates. |
|
virtual |
Create the mesh of the patch.
| nu,nv | Subdivisons. |
|
virtual |
Compute the normal at a given point on the patch.
| u,v | Coordinates. |
|
virtual |
Compute the partial derivatives at a given point on the patch.
| u,v | Coordinates. |
| tu,tv | Tangent vectors, not normalized. |
|
virtual |
Compute a point on the patch.
| u,v | Coordinates. |