Base class to build 3D surfaces presentation of quadric surfaces.
More...
#include <Prs3d_ToolQuadric.hxx>
|
| 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.
|
|
| Deprecated | method |
| | Generate primitives for 3D quadric surface presentation.
|
|
| 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.
|
|
| 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.
◆ CreatePolyTriangulation()
Generate primitives for 3D quadric surface presentation.
- Parameters
-
| [in] | theTrsf | optional transformation to apply |
- Returns
- generated triangulation
◆ CreateTriangulation()
Generate primitives for 3D quadric surface presentation.
- Parameters
-
| [in] | theTrsf | optional transformation to apply |
- Returns
- generated triangulation
◆ FillArray()
Generate primitives for 3D quadric surface and fill the given array.
- Parameters
-
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)
- Parameters
-
| [in] | theTrsf | optional transformation to apply |
◆ Normal()
| virtual gp_Dir Prs3d_ToolQuadric::Normal |
( |
const double | theU, |
|
|
const double | theV ) const |
|
protectedpure virtual |
◆ TrianglesNb() [1/2]
| int Prs3d_ToolQuadric::TrianglesNb |
( |
| ) |
const |
|
inline |
Return number of triangles in generated presentation.
◆ TrianglesNb() [2/2]
| int Prs3d_ToolQuadric::TrianglesNb |
( |
const int | theSlicesNb, |
|
|
const int | theStacksNb ) |
|
inlinestatic |
Return number of triangles for presentation with the given params.
◆ Vertex()
| virtual gp_Pnt Prs3d_ToolQuadric::Vertex |
( |
const double | theU, |
|
|
const double | theV ) const |
|
protectedpure virtual |
◆ VerticesNb() [1/2]
| int Prs3d_ToolQuadric::VerticesNb |
( |
bool | theIsIndexed = true | ) |
const |
|
inline |
Return number of vertices in generated presentation.
◆ VerticesNb() [2/2]
| int Prs3d_ToolQuadric::VerticesNb |
( |
const int | theSlicesNb, |
|
|
const int | theStacksNb, |
|
|
const bool | theIsIndexed = true ) |
|
inlinestatic |
Return number of vertices for presentation with the given params.
◆ method
| Deprecated Prs3d_ToolQuadric::method |
Generate primitives for 3D quadric surface presentation.
- Parameters
-
| [out] | theArray | generated array of triangles |
| [out] | theTriangulation | generated triangulation |
| [in] | theTrsf | optional transformation to apply |
- Deprecated
- (
◆ mySlicesNb
| int Prs3d_ToolQuadric::mySlicesNb |
|
protected |
number of slices within U parameter
◆ myStacksNb
| int Prs3d_ToolQuadric::myStacksNb |
|
protected |
number of stacks within V parameter
The documentation for this class was generated from the following file: