Standard presentation algorithm that outputs graphical primitives for disk surface. More...
#include <Prs3d_ToolDisk.hxx>

Public Member Functions | |
| Prs3d_ToolDisk (const Standard_Real theInnerRadius, const Standard_Real theOuterRadius, const Standard_Integer theNbSlices, const Standard_Integer theNbStacks) | |
| Initializes the algorithm creating a disk. | |
| void | SetAngleRange (Standard_Real theStartAngle, Standard_Real theEndAngle) |
| Set angle range in radians [0, 2*PI] by default. | |
Public Member Functions inherited from Prs3d_ToolQuadric | |
| Handle< Graphic3d_ArrayOfTriangles > | CreateTriangulation (const gp_Trsf &theTrsf) const |
| Generate primitives for 3D quadric surface presentation. | |
| Handle< Poly_Triangulation > | CreatePolyTriangulation (const gp_Trsf &theTrsf) const |
| Generate primitives for 3D quadric surface presentation. | |
| void | FillArray (Handle< Graphic3d_ArrayOfTriangles > &theArray, const gp_Trsf &theTrsf) const |
| Generate primitives for 3D quadric surface and fill the given array. | |
| Standard_Integer | TrianglesNb () const |
| Return number of triangles in generated presentation. | |
| Standard_Integer | VerticesNb (bool theIsIndexed=true) const |
| Return number of vertices in generated presentation. | |
| Deprecated | CreateTriangulation () and CreatePolyTriangulation() should be used instead") 1 void FillArray( Handle< Graphic3d_ArrayOfTriangles > & theArray |
Static Public Member Functions | |
| static Handle< Graphic3d_ArrayOfTriangles > | Create (const Standard_Real theInnerRadius, const Standard_Real theOuterRadius, const Standard_Integer theNbSlices, const Standard_Integer theNbStacks, const gp_Trsf &theTrsf) |
| Generate primitives for 3D quadric surface. | |
Static Public Member Functions inherited from Prs3d_ToolQuadric | |
| static Standard_Integer | TrianglesNb (const Standard_Integer theSlicesNb, const Standard_Integer theStacksNb) |
| Return number of triangles for presentation with the given params. | |
| 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. | |
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, const Standard_Real) const override |
| Computes normal at given parameter location of the surface. | |
Protected Attributes | |
| Standard_Real | myInnerRadius |
| Inner disk radius. | |
| Standard_Real | myOuterRadius |
| Outer disk radius. | |
| Standard_Real | myStartAngle |
| Start angle in counter clockwise order. | |
| Standard_Real | myEndAngle |
| End angle in counter clockwise order. | |
Protected Attributes inherited from Prs3d_ToolQuadric | |
| Standard_Integer | mySlicesNb |
| number of slices within U parameter | |
| Standard_Integer | 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. | |
| Deprecated Handle< Poly_Triangulation > & | theTriangulation |
| Deprecated Handle< Poly_Triangulation > const gp_Trsf &theTrsf | const |
Standard presentation algorithm that outputs graphical primitives for disk surface.
| Prs3d_ToolDisk::Prs3d_ToolDisk | ( | const Standard_Real | theInnerRadius, |
| const Standard_Real | theOuterRadius, | ||
| const Standard_Integer | theNbSlices, | ||
| const Standard_Integer | theNbStacks ) |
Initializes the algorithm creating a disk.
| [in] | theInnerRadius | inner disk radius |
| [in] | theOuterRadius | outer disk radius |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
|
static |
Generate primitives for 3D quadric surface.
| [in] | theInnerRadius | inner disc radius |
| [in] | theOuterRadius | outer disc radius |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
| [in] | theTrsf | optional transformation to apply |
|
inlineoverrideprotectedvirtual |
Computes normal at given parameter location of the surface.
Implements Prs3d_ToolQuadric.
|
inline |
Set angle range in radians [0, 2*PI] by default.
| [in] | theStartAngle | Start angle in counter clockwise order |
| [in] | theEndAngle | End angle in counter clockwise order |
|
overrideprotectedvirtual |
Computes vertex at given parameter location of the surface.
Implements Prs3d_ToolQuadric.
|
protected |
End angle in counter clockwise order.
|
protected |
Inner disk radius.
|
protected |
Outer disk radius.
|
protected |
Start angle in counter clockwise order.