#include <FMMdlSurface.h>
Represents facet body toroidal objects.
Definition at line 585 of file FMMdlSurface.h.
◆ Torus()
Constructor. Creates a torus with the specified axis line, start direction, major and minor radii, and major and minor approximations.
- Parameters
-
| axis | [in] Axis of the torus. |
| startDir | [in] Start direction of rotation. |
| majorRadius | [in] Major radius value. |
| minorRadius | [in] Minor radius value. |
| majorApprox | [in] Major approximation. |
| minorApprox | [in] Minor approximation. |
◆ compare()
| int FacetModeler::Torus::compare |
( |
const Surface * | pOther, |
|
|
double | e ) const |
|
virtual |
Compares surfaces with the specified tolerance.
- Parameters
-
| pOther | [in] Other surface to compare with. |
| eps | [in] Comparison tolerance. |
- Returns
- 0 - if the surfaces are equal, 1 - if a parameter of this surface is greater than the corresponding parameter of another surface, -1 - otherwise.
Reimplemented from FacetModeler::Revolution.
◆ copy()
Creates a copy of the surface to the specified body.
- Parameters
-
- Returns
- Pointer to the newly created surface.
Reimplemented from FacetModeler::Surface.
◆ majorApproximation()
| OdUInt32 FacetModeler::Torus::majorApproximation |
( |
| ) |
const |
Gets the major approximation.
- Returns
- Major approximation as OdUInt32.
◆ majorRadius()
| double FacetModeler::Torus::majorRadius |
( |
| ) |
const |
Gets the major radius value.
- Returns
- Value of the major radius.
◆ minorApproximation()
| OdUInt32 FacetModeler::Torus::minorApproximation |
( |
| ) |
const |
Gets the minor approximation.
- Returns
- Minor approximation as OdUInt32.
◆ minorRadius()
| double FacetModeler::Torus::minorRadius |
( |
| ) |
const |
Gets the minor radius value.
- Returns
- Value of the minor radius.
◆ normal()
Gets the normal at the specified vertex on the specified face.
- Parameters
-
| atV | [in] The vertex at which the normal is computed. |
| atF | [in] The face for which the normal is computed. |
- Returns
- Normal at the specified vertex on the specified face.
Reimplemented from FacetModeler::Surface.
◆ transform()
Transforms the surface with the given transformation matrix.
- Parameters
-
| x | [in] Given transformation matrix. |
Reimplemented from FacetModeler::Revolution.
◆ type()
| Type FacetModeler::Torus::type |
( |
| ) |
const |
|
virtual |
◆ m_majorApprox
| OdUInt32 FacetModeler::Torus::m_majorApprox |
|
protected |
◆ m_majorRadius
| double FacetModeler::Torus::m_majorRadius |
|
protected |
◆ m_minorApprox
| OdUInt32 FacetModeler::Torus::m_minorApprox |
|
protected |
◆ m_minorRadius
| double FacetModeler::Torus::m_minorRadius |
|
protected |
The documentation for this class was generated from the following file: