3D torus function. The function is defined by the torus center, axis, and major and inner radii. The function presents a negative sign inside the torus, and positive outside.
More...
|
| Torus (real major_radius, real minor_radius) |
| Constructor.
|
|
| Torus (real major_radius, real minor_radius, const Point< 3 > ¢er) |
| Constructor.
|
|
| Torus (real major_radius, real minor_radius, const Point< 3 > ¢er, const Point< 3 > &axis) |
| Constructor.
|
|
template<typename T > |
Point< 3, T > | compute_P_x_0 (const Point< 3, T > &point) const |
| Computes the normal component of the a vector respect to the origin.
|
|
| TorusBase (real major_radius, real minor_radius, const Point< 3 > ¢er, const Point< 3 > &axis) |
| Constructor.
|
|
real | major_radius () const |
| Gets the major radius of the torus.
|
|
real | minor_radius () const |
| Gets the minor radius of the torus.
|
|
const Point< 3 > & | center () const |
| Gets the center of the plane.
|
|
const Point< 3 > & | axis () const |
| Gets the axis of the plane.
|
|
Public Member Functions inherited from qugar::impl::DomainFunc< dim, range > |
| DomainFunc ()=default |
| Default constructor.
|
|
| DomainFunc (const DomainFunc &)=default |
| Default copy constructor.
|
|
| DomainFunc (DomainFunc &&)=default |
| Default move constructor.
|
|
DomainFunc & | operator= (const DomainFunc &)=default |
| Default copy assignment operator.
|
|
DomainFunc & | operator= (DomainFunc &&)=default |
| Default move assignment operator.
|
|
virtual | ~DomainFunc ()=default |
| Default virtual destructor.
|
|
virtual Value< real > | operator() (const Point< dim > &point) const =0 |
| Evaluator operator.
|
|
virtual Value< Interval< dim > > | operator() (const Point< dim, Interval< dim > > &point) const =0 |
| Evaluator operator.
|
|
virtual Gradient< real > | grad (const Point< dim > &point) const =0 |
| Gradient evaluator operator.
|
|
virtual Gradient< Interval< dim > > | grad (const Point< dim, Interval< dim > > &point) const =0 |
| Gradient evaluator operator.
|
|
virtual Hessian< real > | hessian (const Point< dim > &point) const =0 |
| Hessian evaluator operator.
|
|
3D torus function. The function is defined by the torus center, axis, and major and inner radii. The function presents a negative sign inside the torus, and positive outside.
- Note
- Non-Bezier version.