Standard presentation algorithm that outputs graphical primitives for torus surface.
More...
#include <Prs3d_ToolTorus.hxx>
|
| | Prs3d_ToolTorus (const double theMajorRad, const double theMinorRad, const int theNbSlices, const int theNbStacks) |
| | Initializes the algorithm creating a complete torus.
|
| |
| | Prs3d_ToolTorus (const double theMajorRad, const double theMinorRad, const double theAngle, const int theNbSlices, const int theNbStacks) |
| | Initializes the algorithm creating a torus pipe segment.
|
| |
| | Prs3d_ToolTorus (const double theMajorRad, const double theMinorRad, const double theAngle1, const double theAngle2, const int theNbSlices, const int theNbStacks) |
| | Initializes the algorithm creating a torus ring segment.
|
| |
| | Prs3d_ToolTorus (const double theMajorRad, const double theMinorRad, const double theAngle1, const double theAngle2, const double theAngle, const int theNbSlices, const int theNbStacks) |
| | Initializes the algorithm creating a torus ring segment.
|
| |
| occ::handle< Graphic3d_ArrayOfTriangles > | CreateTriangulation (const gp_Trsf &theTrsf) const |
| | Generate primitives for 3D quadric surface presentation.
|
| |
| occ::handle< Poly_Triangulation > | CreatePolyTriangulation (const gp_Trsf &theTrsf) const |
| | Generate primitives for 3D quadric surface presentation.
|
| |
| void | FillArray (occ::handle< Graphic3d_ArrayOfTriangles > &theArray, const gp_Trsf &theTrsf) const |
| | Generate primitives for 3D quadric surface and fill the given array.
|
| |
| int | TrianglesNb () const |
| | Return number of triangles in generated presentation.
|
| |
| int | VerticesNb (bool theIsIndexed=true) const |
| | Return number of vertices in generated presentation.
|
| |
|
| static occ::handle< Graphic3d_ArrayOfTriangles > | Create (const double theMajorRad, const double theMinorRad, const int theNbSlices, const int theNbStacks, const gp_Trsf &theTrsf) |
| | Generate primitives for 3D quadric surface (complete torus).
|
| |
| static occ::handle< Graphic3d_ArrayOfTriangles > | Create (const double theMajorRad, const double theMinorRad, const double theAngle, const int theNbSlices, const int theNbStacks, const gp_Trsf &theTrsf) |
| | Generate primitives for 3D quadric surface (torus segment).
|
| |
| static occ::handle< Graphic3d_ArrayOfTriangles > | Create (const double theMajorRad, const double theMinorRad, const double theAngle1, const double theAngle2, const int theNbSlices, const int theNbStacks, const gp_Trsf &theTrsf) |
| | Generate primitives for 3D quadric surface (torus ring segment).
|
| |
| static occ::handle< Graphic3d_ArrayOfTriangles > | Create (const double theMajorRad, const double theMinorRad, const double theAngle1, const double theAngle2, const double theAngle, const int theNbSlices, const int theNbStacks, const gp_Trsf &theTrsf) |
| | Generate primitives for 3D quadric surface (segment of the torus ring segment).
|
| |
| static int | TrianglesNb (const int theSlicesNb, const int theStacksNb) |
| | Return number of triangles for presentation with the given params.
|
| |
| static int | VerticesNb (const int theSlicesNb, const int theStacksNb, const bool theIsIndexed=true) |
| | Return number of vertices for presentation with the given params.
|
| |
Standard presentation algorithm that outputs graphical primitives for torus surface.
◆ Prs3d_ToolTorus() [1/4]
| Prs3d_ToolTorus::Prs3d_ToolTorus |
( |
const double | theMajorRad, |
|
|
const double | theMinorRad, |
|
|
const int | theNbSlices, |
|
|
const int | theNbStacks ) |
|
inline |
Initializes the algorithm creating a complete torus.
- Parameters
-
| [in] | theMajorRad | distance from the center of the pipe to the center of the torus |
| [in] | theMinorRad | radius of the pipe |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
◆ Prs3d_ToolTorus() [2/4]
| Prs3d_ToolTorus::Prs3d_ToolTorus |
( |
const double | theMajorRad, |
|
|
const double | theMinorRad, |
|
|
const double | theAngle, |
|
|
const int | theNbSlices, |
|
|
const int | theNbStacks ) |
|
inline |
Initializes the algorithm creating a torus pipe segment.
- Parameters
-
| [in] | theMajorRad | distance from the center of the pipe to the center of the torus |
| [in] | theMinorRad | radius of the pipe |
| [in] | theAngle | angle to create a torus pipe segment |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
◆ Prs3d_ToolTorus() [3/4]
| Prs3d_ToolTorus::Prs3d_ToolTorus |
( |
const double | theMajorRad, |
|
|
const double | theMinorRad, |
|
|
const double | theAngle1, |
|
|
const double | theAngle2, |
|
|
const int | theNbSlices, |
|
|
const int | theNbStacks ) |
|
inline |
Initializes the algorithm creating a torus ring segment.
- Parameters
-
| [in] | theMajorRad | distance from the center of the pipe to the center of the torus |
| [in] | theMinorRad | radius of the pipe |
| [in] | theAngle1 | first angle to create a torus ring segment |
| [in] | theAngle2 | second angle to create a torus ring segment |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
◆ Prs3d_ToolTorus() [4/4]
| Prs3d_ToolTorus::Prs3d_ToolTorus |
( |
const double | theMajorRad, |
|
|
const double | theMinorRad, |
|
|
const double | theAngle1, |
|
|
const double | theAngle2, |
|
|
const double | theAngle, |
|
|
const int | theNbSlices, |
|
|
const int | theNbStacks ) |
|
inline |
Initializes the algorithm creating a torus ring segment.
- Parameters
-
| [in] | theMajorRad | distance from the center of the pipe to the center of the torus |
| [in] | theMinorRad | radius of the pipe |
| [in] | theAngle1 | first angle to create a torus ring segment |
| [in] | theAngle2 | second angle to create a torus ring segment |
| [in] | theAngle | angle to create a torus pipe segment |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
◆ Create() [1/4]
Generate primitives for 3D quadric surface (torus segment).
- Parameters
-
| [in] | theMajorRad | distance from the center of the pipe to the center of the torus |
| [in] | theMinorRad | radius of the pipe |
| [in] | theAngle | angle to create a torus pipe segment |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
| [in] | theTrsf | optional transformation to apply |
- Returns
- generated triangulation
◆ Create() [2/4]
Generate primitives for 3D quadric surface (segment of the torus ring segment).
- Parameters
-
| [in] | theMajorRad | distance from the center of the pipe to the center of the torus |
| [in] | theMinorRad | radius of the pipe |
| [in] | theAngle1 | first angle to create a torus ring segment |
| [in] | theAngle2 | second angle to create a torus ring segment |
| [in] | theAngle | angle to create a torus pipe segment |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
| [in] | theTrsf | optional transformation to apply |
- Returns
- generated triangulation
◆ Create() [3/4]
Generate primitives for 3D quadric surface (torus ring segment).
- Parameters
-
| [in] | theMajorRad | distance from the center of the pipe to the center of the torus |
| [in] | theMinorRad | radius of the pipe |
| [in] | theAngle1 | first angle to create a torus ring segment |
| [in] | theAngle2 | second angle to create a torus ring segment |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
| [in] | theTrsf | optional transformation to apply |
- Returns
- generated triangulation
◆ Create() [4/4]
Generate primitives for 3D quadric surface (complete torus).
- Parameters
-
| [in] | theMajorRad | distance from the center of the pipe to the center of the torus |
| [in] | theMinorRad | radius of the pipe |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
| [in] | theTrsf | optional transformation to apply |
- Returns
- generated triangulation
◆ Normal()
Computes normal at given parameter location of the surface.
Implements Prs3d_ToolQuadric.
◆ Vertex()
Computes vertex at given parameter location of the surface.
Implements Prs3d_ToolQuadric.
◆ myAngle
| double Prs3d_ToolTorus::myAngle |
|
protected |
angle to create a torus pipe segment
◆ myMajorRadius
| double Prs3d_ToolTorus::myMajorRadius |
|
protected |
distance from the center of the pipe to the center of the torus
◆ myMinorRadius
| double Prs3d_ToolTorus::myMinorRadius |
|
protected |
◆ myVMax
| double Prs3d_ToolTorus::myVMax |
|
protected |
second angle to create a torus ring segment
◆ myVMin
| double Prs3d_ToolTorus::myVMin |
|
protected |
first angle to create a torus ring segment
The documentation for this class was generated from the following file: