![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Standard presentation algorithm that outputs graphical primitives for cylindrical surface. More...
#include <Prs3d_ToolCylinder.hxx>

Public Member Functions | |
| Prs3d_ToolCylinder (const double theBottomRad, const double theTopRad, const double theHeight, const int theNbSlices, const int theNbStacks) | |
| Initializes the algorithm creating a cylinder. | |
Public Member Functions inherited from Prs3d_ToolQuadric | |
| 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 Public Member Functions | |
| static occ::handle< Graphic3d_ArrayOfTriangles > | Create (const double theBottomRad, const double theTopRad, const double theHeight, const int theNbSlices, const int theNbStacks, const gp_Trsf &theTrsf) |
| Generate primitives for 3D quadric surface and return a filled array. | |
Static Public Member Functions inherited from Prs3d_ToolQuadric | |
| 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. | |
Protected Member Functions | |
| gp_Pnt | Vertex (const double theU, const double theV) const override |
| Computes vertex at given parameter location of the surface. | |
| gp_Dir | Normal (const double theU, const double theV) const override |
| Computes normal at given parameter location of the surface. | |
Protected Attributes | |
| double | myBottomRadius |
| cylinder bottom radius | |
| double | myTopRadius |
| cylinder top radius | |
| double | myHeight |
| cylinder height | |
Protected Attributes inherited from Prs3d_ToolQuadric | |
| int | mySlicesNb |
| number of slices within U parameter | |
| int | myStacksNb |
| number of stacks within V parameter | |
Additional Inherited Members | |
Data Fields inherited from Prs3d_ToolQuadric | |
| Deprecated | method |
| Generate primitives for 3D quadric surface presentation. | |
Standard presentation algorithm that outputs graphical primitives for cylindrical surface.
| Prs3d_ToolCylinder::Prs3d_ToolCylinder | ( | const double | theBottomRad, |
| const double | theTopRad, | ||
| const double | theHeight, | ||
| const int | theNbSlices, | ||
| const int | theNbStacks ) |
Initializes the algorithm creating a cylinder.
| [in] | theBottomRad | cylinder bottom radius |
| [in] | theTopRad | cylinder top radius |
| [in] | theHeight | cylinder height |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
|
static |
Generate primitives for 3D quadric surface and return a filled array.
| [in] | theBottomRad | cylinder bottom radius |
| [in] | theTopRad | cylinder top radius |
| [in] | theHeight | cylinder height |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
| [in] | theTrsf | 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 |
cylinder bottom radius
|
protected |
cylinder height
|
protected |
cylinder top radius