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