OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    StdPrs_ShadedShape Class Reference

    Auxiliary procedures to prepare Shaded presentation of specified shape. More...

    #include <StdPrs_ShadedShape.hxx>

    Inheritance diagram for StdPrs_ShadedShape:

    Static Public Member Functions

    static void Add (const occ::handle< Prs3d_Presentation > &thePresentation, const TopoDS_Shape &theShape, const occ::handle< Prs3d_Drawer > &theDrawer, const StdPrs_Volume theVolume=StdPrs_Volume_Autodetection, const occ::handle< Graphic3d_Group > &theGroup=nullptr)
     Shades <theShape>.
    static void Add (const occ::handle< Prs3d_Presentation > &thePresentation, const TopoDS_Shape &theShape, const occ::handle< Prs3d_Drawer > &theDrawer, const bool theHasTexels, const gp_Pnt2d &theUVOrigin, const gp_Pnt2d &theUVRepeat, const gp_Pnt2d &theUVScale, const StdPrs_Volume theVolume=StdPrs_Volume_Autodetection, const occ::handle< Graphic3d_Group > &theGroup=nullptr)
     Shades <theShape> with texture coordinates.
    static void ExploreSolids (const TopoDS_Shape &theShape, const BRep_Builder &theBuilder, TopoDS_Compound &theClosed, TopoDS_Compound &theOpened, const bool theIgnore1DSubShape)
     Searches closed and unclosed subshapes in shape structure and puts them into two compounds for separate processing of closed and unclosed sub-shapes.
    static void AddWireframeForFreeElements (const occ::handle< Prs3d_Presentation > &thePrs, const TopoDS_Shape &theShape, const occ::handle< Prs3d_Drawer > &theDrawer)
     Computes wireframe presentation for free wires and vertices.
    static void AddWireframeForFacesWithoutTriangles (const occ::handle< Prs3d_Presentation > &thePrs, const TopoDS_Shape &theShape, const occ::handle< Prs3d_Drawer > &theDrawer)
     Computes special wireframe presentation for faces without triangulation.
    static occ::handle< Graphic3d_ArrayOfTrianglesFillTriangles (const TopoDS_Shape &theShape)
     Create primitive array with triangles for specified shape.
    static occ::handle< Graphic3d_ArrayOfTrianglesFillTriangles (const TopoDS_Shape &theShape, const bool theHasTexels, const gp_Pnt2d &theUVOrigin, const gp_Pnt2d &theUVRepeat, const gp_Pnt2d &theUVScale)
     Create primitive array of triangles for specified shape.
    static occ::handle< Graphic3d_ArrayOfSegmentsFillFaceBoundaries (const TopoDS_Shape &theShape, GeomAbs_Shape theUpperContinuity=GeomAbs_CN)
     Define primitive array of boundary segments for specified shape.
    Static Public Member Functions inherited from Prs3d_Root
    called static instead occ::handle< Graphic3d_GroupCurrentGroup (const occ::handle< Prs3d_Presentation > &thePrs3d)
    static instead occ::handle< Graphic3d_GroupNewGroup (const occ::handle< Prs3d_Presentation > &thePrs3d)

    Detailed Description

    Auxiliary procedures to prepare Shaded presentation of specified shape.

    Member Function Documentation

    ◆ Add() [1/2]

    void StdPrs_ShadedShape::Add ( const occ::handle< Prs3d_Presentation > & thePresentation,
    const TopoDS_Shape & theShape,
    const occ::handle< Prs3d_Drawer > & theDrawer,
    const bool theHasTexels,
    const gp_Pnt2d & theUVOrigin,
    const gp_Pnt2d & theUVRepeat,
    const gp_Pnt2d & theUVScale,
    const StdPrs_Volume theVolume = StdPrs_Volume_Autodetection,
    const occ::handle< Graphic3d_Group > & theGroup = nullptr )
    static

    Shades <theShape> with texture coordinates.

    Parameters
    theVolumeTypedefines the way how to interpret input shapes - as Closed volumes (to activate back-face culling and capping plane algorithms), as Open volumes (shells or solids with holes) or to perform Autodetection (would split input shape into two groups)

    ◆ Add() [2/2]

    void StdPrs_ShadedShape::Add ( const occ::handle< Prs3d_Presentation > & thePresentation,
    const TopoDS_Shape & theShape,
    const occ::handle< Prs3d_Drawer > & theDrawer,
    const StdPrs_Volume theVolume = StdPrs_Volume_Autodetection,
    const occ::handle< Graphic3d_Group > & theGroup = nullptr )
    static

    Shades <theShape>.

    Parameters
    theVolumeTypedefines the way how to interpret input shapes - as Closed volumes (to activate back-face culling and capping plane algorithms), as Open volumes (shells or solids with holes) or to perform Autodetection (would split input shape into two groups)

    ◆ AddWireframeForFacesWithoutTriangles()

    void StdPrs_ShadedShape::AddWireframeForFacesWithoutTriangles ( const occ::handle< Prs3d_Presentation > & thePrs,
    const TopoDS_Shape & theShape,
    const occ::handle< Prs3d_Drawer > & theDrawer )
    static

    Computes special wireframe presentation for faces without triangulation.

    ◆ AddWireframeForFreeElements()

    void StdPrs_ShadedShape::AddWireframeForFreeElements ( const occ::handle< Prs3d_Presentation > & thePrs,
    const TopoDS_Shape & theShape,
    const occ::handle< Prs3d_Drawer > & theDrawer )
    static

    Computes wireframe presentation for free wires and vertices.

    ◆ ExploreSolids()

    void StdPrs_ShadedShape::ExploreSolids ( const TopoDS_Shape & theShape,
    const BRep_Builder & theBuilder,
    TopoDS_Compound & theClosed,
    TopoDS_Compound & theOpened,
    const bool theIgnore1DSubShape )
    static

    Searches closed and unclosed subshapes in shape structure and puts them into two compounds for separate processing of closed and unclosed sub-shapes.

    ◆ FillFaceBoundaries()

    occ::handle< Graphic3d_ArrayOfSegments > StdPrs_ShadedShape::FillFaceBoundaries ( const TopoDS_Shape & theShape,
    GeomAbs_Shape theUpperContinuity = GeomAbs_CN )
    static

    Define primitive array of boundary segments for specified shape.

    Parameters
    theShapesegments array or NULL if specified face does not have computed triangulation
    theUpperContinuitythe most edge continuity class to be included to result (edges with more continuity will be ignored)

    ◆ FillTriangles() [1/2]

    occ::handle< Graphic3d_ArrayOfTriangles > StdPrs_ShadedShape::FillTriangles ( const TopoDS_Shape & theShape)
    inlinestatic

    Create primitive array with triangles for specified shape.

    Parameters
    [in]theShapethe shape with precomputed triangulation

    ◆ FillTriangles() [2/2]

    occ::handle< Graphic3d_ArrayOfTriangles > StdPrs_ShadedShape::FillTriangles ( const TopoDS_Shape & theShape,
    const bool theHasTexels,
    const gp_Pnt2d & theUVOrigin,
    const gp_Pnt2d & theUVRepeat,
    const gp_Pnt2d & theUVScale )
    static

    Create primitive array of triangles for specified shape.

    Parameters
    theShapethe shape with precomputed triangulation
    theHasTexelsdefine UV coordinates in primitive array
    theUVOriginorigin for UV coordinates
    theUVRepeatrepeat parameters for UV coordinates
    theUVScalescale coefficients for UV coordinates
    Returns
    triangles array or NULL if specified face does not have computed triangulation

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