IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Parametric equation of a toroid surface in form of 3D vector function of 2 variables. Can be combined with TorusVertical to show 2 interlocked toroids. More...
Public Member Functions | |
Torus () | |
Constructs a parametric definition of a torus with radius of centerline 1 and radius of surface circles 0.25. | |
Torus (double radiusRatio) | |
Constructs a parametric definition of a torus with the radius of centerline equal to 1 and the specified ratio between radius of the radius of cross-section circles and radius of the centerline. | |
Torus (double a, double c) | |
Constructs a parametric definition of a torus with the specified radius of centerline and radius of surface circles. | |
Public Attributes | |
double | a = 0.25 |
double | c = 1.0 |
Protected Member Functions | |
override double | f1 (double u, double v) |
override double | f2 (double u, double v) |
override double | f3 (double u, double v) |
Parametric equation of a toroid surface in form of 3D vector function of 2 variables.
Can be combined with TorusVertical to show 2 interlocked toroids.
See also http://www.vtk.org/VTK/img/ParametricSurfaces.pdf .
$A Igor Oct09;
IG::Num::Func3d2dExamples::Torus::Torus | ( | ) | [inline] |
Constructs a parametric definition of a torus with radius of centerline 1 and radius of surface circles 0.25.
IG::Num::Func3d2dExamples::Torus::Torus | ( | double | radiusRatio | ) | [inline] |
Constructs a parametric definition of a torus with the radius of centerline equal to 1 and the specified ratio between radius of the radius of cross-section circles and radius of the centerline.
radiusRatio | Ratio between the radius of cross-section circles and radius of the centerline (normally between 0 and 1). |
IG::Num::Func3d2dExamples::Torus::Torus | ( | double | a, |
double | c | ||
) | [inline] |
Constructs a parametric definition of a torus with the specified radius of centerline and radius of surface circles.
a | Radius of cross-section circles. |
c | Radius of the centerline, should normally be greater than a . |
override double IG::Num::Func3d2dExamples::Torus::f1 | ( | double | u, |
double | v | ||
) | [inline, protected, virtual] |
Implements IG::Num::Func3d2dExamples::ParametricSurface.
override double IG::Num::Func3d2dExamples::Torus::f2 | ( | double | u, |
double | v | ||
) | [inline, protected, virtual] |
Implements IG::Num::Func3d2dExamples::ParametricSurface.
override double IG::Num::Func3d2dExamples::Torus::f3 | ( | double | u, |
double | v | ||
) | [inline, protected, virtual] |
Implements IG::Num::Func3d2dExamples::ParametricSurface.
double IG::Num::Func3d2dExamples::Torus::a = 0.25 |
double IG::Num::Func3d2dExamples::Torus::c = 1.0 |