![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Base class to build 3D surfaces presentation of quadric surfaces. More...
#include <Prs3d_ToolQuadric.hxx>

Public Member Functions | |
| 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 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. | |
Data Fields | |
| Deprecated | method |
| Generate primitives for 3D quadric surface presentation. | |
Protected Member Functions | |
| virtual gp_Pnt | Vertex (const double theU, const double theV) const =0 |
| Redefine this method to generate vertex at given parameters. | |
| virtual gp_Dir | Normal (const double theU, const double theV) const =0 |
| Redefine this method to generate normal at given parameters. | |
Protected Attributes | |
| int | mySlicesNb |
| number of slices within U parameter | |
| int | myStacksNb |
| number of stacks within V parameter | |
Base class to build 3D surfaces presentation of quadric surfaces.
| occ::handle< Poly_Triangulation > Prs3d_ToolQuadric::CreatePolyTriangulation | ( | const gp_Trsf & | theTrsf | ) | const |
Generate primitives for 3D quadric surface presentation.
| [in] | theTrsf | optional transformation to apply |
| occ::handle< Graphic3d_ArrayOfTriangles > Prs3d_ToolQuadric::CreateTriangulation | ( | const gp_Trsf & | theTrsf | ) | const |
Generate primitives for 3D quadric surface presentation.
| [in] | theTrsf | optional transformation to apply |
| void Prs3d_ToolQuadric::FillArray | ( | occ::handle< Graphic3d_ArrayOfTriangles > & | theArray, |
| const gp_Trsf & | theTrsf ) const |
Generate primitives for 3D quadric surface and fill the given array.
| [in] |
out] theArray the array of vertices; when NULL, function will create an indexed array; when not NULL, triangles will be appended to the end of array (will raise an exception if reserved array size is not large enough)
| [in] | theTrsf | optional transformation to apply |
|
protectedpure virtual |
Redefine this method to generate normal at given parameters.
Implemented in Prs3d_ToolCylinder, Prs3d_ToolSphere, Prs3d_ToolTorus, Prs3d_ToolDisk, and Prs3d_ToolSector.
|
inline |
Return number of triangles in generated presentation.
|
inlinestatic |
Return number of triangles for presentation with the given params.
|
protectedpure virtual |
Redefine this method to generate vertex at given parameters.
Implemented in Prs3d_ToolCylinder, Prs3d_ToolDisk, Prs3d_ToolSector, Prs3d_ToolSphere, and Prs3d_ToolTorus.
Return number of vertices in generated presentation.
|
inlinestatic |
Return number of vertices for presentation with the given params.
| Deprecated Prs3d_ToolQuadric::method |
Generate primitives for 3D quadric surface presentation.
| [out] | theArray | generated array of triangles |
| [out] | theTriangulation | generated triangulation |
| [in] | theTrsf | optional transformation to apply |
|
protected |
number of slices within U parameter
|
protected |
number of stacks within V parameter