Open CASCADE Technology
7.4.0
|
Base class to build 3D surfaces presentation of quadric surfaces. More...
#include <Prs3d_ToolQuadric.hxx>
Public Member Functions | |
void | FillArray (Handle< Graphic3d_ArrayOfTriangles > &theArray, const gp_Trsf &theTrsf) |
Generate primitives for 3D quadric surface and fill the given array. Optional transformation is applied. More... | |
void | FillArray (Handle< Graphic3d_ArrayOfTriangles > &theArray, Handle< Poly_Triangulation > &theTriangulation, const gp_Trsf &theTrsf) |
Generate primitives for 3D quadric surface presentation and fill the given array and poly triangulation structure. Optional transformation is applied. More... | |
Static Public Member Functions | |
static Standard_Integer | TrianglesNb (const Standard_Integer theSlicesNb, const Standard_Integer theStacksNb) |
Number of triangles for presentation with the given params. More... | |
Protected Member Functions | |
void | fillArrays (const gp_Trsf &theTrsf, TColgp_Array1OfPnt &theArray, NCollection_Array1< gp_Dir > &theNormals) |
Method implements an algorithm to generate arrays of vertices and normals for 3D surface. More... | |
Standard_Integer | TrianglesNb () const |
Number of triangles in generated presentation. More... | |
virtual gp_Pnt | Vertex (const Standard_Real theU, const Standard_Real theV)=0 |
Redefine this method to generate vertex at given parameters. More... | |
virtual gp_Dir | Normal (const Standard_Real theU, const Standard_Real theV)=0 |
Redefine this method to generate normal at given parameters. More... | |
Protected Attributes | |
Standard_Integer | mySlicesNb |
Standard_Integer | myStacksNb |
Base class to build 3D surfaces presentation of quadric surfaces.
void Prs3d_ToolQuadric::FillArray | ( | Handle< Graphic3d_ArrayOfTriangles > & | theArray, |
const gp_Trsf & | theTrsf | ||
) |
Generate primitives for 3D quadric surface and fill the given array. Optional transformation is applied.
void Prs3d_ToolQuadric::FillArray | ( | Handle< Graphic3d_ArrayOfTriangles > & | theArray, |
Handle< Poly_Triangulation > & | theTriangulation, | ||
const gp_Trsf & | theTrsf | ||
) |
Generate primitives for 3D quadric surface presentation and fill the given array and poly triangulation structure. Optional transformation is applied.
|
protected |
Method implements an algorithm to generate arrays of vertices and normals for 3D surface.
|
protectedpure virtual |
Redefine this method to generate normal at given parameters.
Implemented in Prs3d_ToolDisk, Prs3d_ToolSphere, Prs3d_ToolCylinder, and Prs3d_ToolSector.
|
inlinestatic |
Number of triangles for presentation with the given params.
|
inlineprotected |
Number of triangles in generated presentation.
|
protectedpure virtual |
Redefine this method to generate vertex at given parameters.
Implemented in Prs3d_ToolDisk, Prs3d_ToolSphere, Prs3d_ToolCylinder, and Prs3d_ToolSector.
|
protected |
|
protected |