OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    Prs3d_ToolDisk Class Reference

    Standard presentation algorithm that outputs graphical primitives for disk surface. More...

    #include <Prs3d_ToolDisk.hxx>

    Inheritance diagram for Prs3d_ToolDisk:

    Public Member Functions

     Prs3d_ToolDisk (const double theInnerRadius, const double theOuterRadius, const int theNbSlices, const int theNbStacks)
     Initializes the algorithm creating a disk.
    void SetAngleRange (double theStartAngle, double theEndAngle)
     Set angle range in radians [0, 2*PI] by default.
    Public Member Functions inherited from Prs3d_ToolQuadric
    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 occ::handle< Graphic3d_ArrayOfTriangles > Create (const double theInnerRadius, const double theOuterRadius, const int theNbSlices, const int theNbStacks, const gp_Trsf &theTrsf)
     Generate primitives for 3D quadric surface.
    Static Public Member Functions inherited from Prs3d_ToolQuadric
    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.

    Protected Member Functions

    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, const double) const override
     Computes normal at given parameter location of the surface.

    Protected Attributes

    double myInnerRadius
     Inner disk radius.
    double myOuterRadius
     Outer disk radius.
    double myStartAngle
     Start angle in counter clockwise order.
    double myEndAngle
     End angle in counter clockwise order.
    Protected Attributes inherited from Prs3d_ToolQuadric
    int mySlicesNb
     number of slices within U parameter
    int myStacksNb
     number of stacks within V parameter

    Additional Inherited Members

    Data Fields inherited from Prs3d_ToolQuadric
    Deprecated method
     Generate primitives for 3D quadric surface presentation.

    Detailed Description

    Standard presentation algorithm that outputs graphical primitives for disk surface.

    Constructor & Destructor Documentation

    ◆ Prs3d_ToolDisk()

    Prs3d_ToolDisk::Prs3d_ToolDisk ( const double theInnerRadius,
    const double theOuterRadius,
    const int theNbSlices,
    const int theNbStacks )

    Initializes the algorithm creating a disk.

    Parameters
    [in]theInnerRadiusinner disk radius
    [in]theOuterRadiusouter disk radius
    [in]theNbSlicesnumber of slices within U parameter
    [in]theNbStacksnumber of stacks within V parameter

    Member Function Documentation

    ◆ Create()

    occ::handle< Graphic3d_ArrayOfTriangles > Prs3d_ToolDisk::Create ( const double theInnerRadius,
    const double theOuterRadius,
    const int theNbSlices,
    const int theNbStacks,
    const gp_Trsf & theTrsf )
    static

    Generate primitives for 3D quadric surface.

    Parameters
    [in]theInnerRadiusinner disc radius
    [in]theOuterRadiusouter disc radius
    [in]theNbSlicesnumber of slices within U parameter
    [in]theNbStacksnumber of stacks within V parameter
    [in]theTrsfoptional transformation to apply
    Returns
    generated triangulation

    ◆ Normal()

    gp_Dir Prs3d_ToolDisk::Normal ( const double ,
    const double  ) const
    inlineoverrideprotectedvirtual

    Computes normal at given parameter location of the surface.

    Implements Prs3d_ToolQuadric.

    ◆ SetAngleRange()

    void Prs3d_ToolDisk::SetAngleRange ( double theStartAngle,
    double theEndAngle )
    inline

    Set angle range in radians [0, 2*PI] by default.

    Parameters
    [in]theStartAngleStart angle in counter clockwise order
    [in]theEndAngleEnd angle in counter clockwise order

    ◆ Vertex()

    gp_Pnt Prs3d_ToolDisk::Vertex ( const double theU,
    const double theV ) const
    overrideprotectedvirtual

    Computes vertex at given parameter location of the surface.

    Implements Prs3d_ToolQuadric.

    Field Documentation

    ◆ myEndAngle

    double Prs3d_ToolDisk::myEndAngle
    protected

    End angle in counter clockwise order.

    ◆ myInnerRadius

    double Prs3d_ToolDisk::myInnerRadius
    protected

    Inner disk radius.

    ◆ myOuterRadius

    double Prs3d_ToolDisk::myOuterRadius
    protected

    Outer disk radius.

    ◆ myStartAngle

    double Prs3d_ToolDisk::myStartAngle
    protected

    Start angle in counter clockwise order.


    The documentation for this class was generated from the following file: