Open CASCADE Technology
7.5.0
|
Base class to build 3D surfaces presentation of quadric surfaces. More...
#include <Prs3d_ToolQuadric.hxx>
Public Member Functions | |
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 Public Member Functions | |
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... | |
Protected Member Functions | |
Standard_Integer | TrianglesNb () const |
Return number of triangles in generated presentation. More... | |
Standard_Integer | VerticesNb (const Standard_Boolean theIsIndexed=Standard_True) const |
Return number of vertices in generated presentation. More... | |
virtual gp_Pnt | Vertex (const Standard_Real theU, const Standard_Real theV) const =0 |
Redefine this method to generate vertex at given parameters. More... | |
virtual gp_Dir | Normal (const Standard_Real theU, const Standard_Real theV) const =0 |
Redefine this method to generate normal at given parameters. More... | |
Protected Attributes | |
Standard_Integer | mySlicesNb |
number of slices within U parameter More... | |
Standard_Integer | myStacksNb |
number of stacks within V parameter More... | |
Base class to build 3D surfaces presentation of quadric surfaces.
Handle< Poly_Triangulation > Prs3d_ToolQuadric::CreatePolyTriangulation | ( | const gp_Trsf & | theTrsf | ) | const |
Generate primitives for 3D quadric surface presentation.
theTrsf | [in] optional transformation to apply |
Handle< Graphic3d_ArrayOfTriangles > Prs3d_ToolQuadric::CreateTriangulation | ( | const gp_Trsf & | theTrsf | ) | const |
Generate primitives for 3D quadric surface presentation.
theTrsf | [in] optional transformation to apply |
void Prs3d_ToolQuadric::FillArray | ( | Handle< Graphic3d_ArrayOfTriangles > & | theArray, |
const gp_Trsf & | theTrsf | ||
) | const |
Generate primitives for 3D quadric surface and fill the given array.
theArray | [in][out] 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) |
theTrsf | [in] optional transformation to apply |
void Prs3d_ToolQuadric::FillArray | ( | Handle< Graphic3d_ArrayOfTriangles > & | theArray, |
Handle< Poly_Triangulation > & | theTriangulation, | ||
const gp_Trsf & | theTrsf | ||
) | const |
Generate primitives for 3D quadric surface presentation.
theArray | [out] generated array of triangles |
theTriangulation | [out] generated triangulation |
theTrsf | [in] optional transformation to apply |
|
protectedpure virtual |
Redefine this method to generate normal at given parameters.
Implemented in Prs3d_ToolTorus, Prs3d_ToolDisk, Prs3d_ToolCylinder, Prs3d_ToolSphere, and Prs3d_ToolSector.
|
inlinestatic |
Return number of triangles for presentation with the given params.
|
inlineprotected |
Return number of triangles in generated presentation.
|
protectedpure virtual |
Redefine this method to generate vertex at given parameters.
Implemented in Prs3d_ToolTorus, Prs3d_ToolDisk, Prs3d_ToolCylinder, Prs3d_ToolSphere, and Prs3d_ToolSector.
|
inlinestatic |
Return number of vertices for presentation with the given params.
|
inlineprotected |
Return number of vertices in generated presentation.
|
protected |
number of slices within U parameter
|
protected |
number of stacks within V parameter