Standard presentation algorithm that outputs graphical primitives for spherical surface.
More...
#include <Prs3d_ToolSphere.hxx>
|
| static occ::handle< Graphic3d_ArrayOfTriangles > | Create (const double theRadius, const int theNbSlices, const int theNbStacks, const gp_Trsf &theTrsf) |
| | Generate primitives for 3D quadric surface.
|
| 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.
|
|
| gp_Pnt | Vertex (const double theU, const double theV) const override |
| | Computes vertex at given parameter location of the surface.
|
| gp_Dir | Normal (const double theU, const double theV) const override |
| | Computes normal at given parameter location of the surface.
|
|
| Deprecated | method |
| | Generate primitives for 3D quadric surface presentation.
|
Standard presentation algorithm that outputs graphical primitives for spherical surface.
◆ Prs3d_ToolSphere()
| Prs3d_ToolSphere::Prs3d_ToolSphere |
( |
const double | theRadius, |
|
|
const int | theNbSlices, |
|
|
const int | theNbStacks ) |
Initializes the algorithm creating a sphere.
- Parameters
-
| [in] | theRadius | sphere radius |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
◆ Create()
Generate primitives for 3D quadric surface.
- Parameters
-
| [in] | theRadius | sphere radius |
| [in] | theNbSlices | number of slices within U parameter |
| [in] | theNbStacks | number of stacks within V parameter |
| [in] | theTrsf | optional transformation to apply |
- Returns
- generated triangulation
◆ Normal()
| gp_Dir Prs3d_ToolSphere::Normal |
( |
const double | theU, |
|
|
const double | theV ) const |
|
overrideprotectedvirtual |
Computes normal at given parameter location of the surface.
Implements Prs3d_ToolQuadric.
◆ Vertex()
| gp_Pnt Prs3d_ToolSphere::Vertex |
( |
const double | theU, |
|
|
const double | theV ) const |
|
overrideprotectedvirtual |
Computes vertex at given parameter location of the surface.
Implements Prs3d_ToolQuadric.
◆ myRadius
| double Prs3d_ToolSphere::myRadius |
|
protected |
The documentation for this class was generated from the following file: