Open CASCADE Technology 7.8.0
|
Standard presentation algorithm that outputs graphical primitives for torus surface. More...
#include <Prs3d_ToolTorus.hxx>
Protected Member Functions | |
virtual gp_Pnt | Vertex (const Standard_Real theU, const Standard_Real theV) const override |
Computes vertex at given parameter location of the surface. | |
virtual gp_Dir | Normal (const Standard_Real theU, const Standard_Real theV) const override |
Computes normal at given parameter location of the surface. | |
Protected Attributes | |
Standard_Real | myMajorRadius |
distance from the center of the pipe to the center of the torus | |
Standard_Real | myMinorRadius |
radius of the pipe | |
Standard_Real | myAngle |
angle to create a torus pipe segment | |
Standard_Real | myVMin |
first angle to create a torus ring segment | |
Standard_Real | myVMax |
second angle to create a torus ring segment | |
![]() | |
Standard_Integer | mySlicesNb |
number of slices within U parameter | |
Standard_Integer | myStacksNb |
number of stacks within V parameter | |
Standard presentation algorithm that outputs graphical primitives for torus surface.
|
inline |
Initializes the algorithm creating a complete torus.
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 |
|
inline |
Initializes the algorithm creating a torus pipe segment.
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 |
|
inline |
Initializes the algorithm creating a torus ring segment.
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 |
|
inline |
Initializes the algorithm creating a torus ring segment.
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 |
|
inlinestatic |
Generate primitives for 3D quadric surface (complete torus).
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 |
|
inlinestatic |
Generate primitives for 3D quadric surface (torus segment).
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 |
|
inlinestatic |
Generate primitives for 3D quadric surface (torus ring segment).
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 |
|
static |
Generate primitives for 3D quadric surface (segment of the torus ring segment).
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 |
|
overrideprotectedvirtual |
Computes normal at given parameter location of the surface.
Implements Prs3d_ToolQuadric.
|
overrideprotectedvirtual |
Computes vertex at given parameter location of the surface.
Implements Prs3d_ToolQuadric.
|
protected |
angle to create a torus pipe segment
|
protected |
distance from the center of the pipe to the center of the torus
|
protected |
radius of the pipe
|
protected |
second angle to create a torus ring segment
|
protected |
first angle to create a torus ring segment