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
    ShapeAnalysis_Shell Class Reference

    This class provides operators to analyze edges orientation in the shell. More...

    #include <ShapeAnalysis_Shell.hxx>

    Public Member Functions

     ShapeAnalysis_Shell ()
     Empty constructor.
    void Clear ()
     Clears data about loaded shells and performed checks.
    void LoadShells (const TopoDS_Shape &shape)
     Adds shells contained in the <shape> to the list of loaded shells.
    bool CheckOrientedShells (const TopoDS_Shape &shape, const bool alsofree=false, const bool checkinternaledges=false)
     Checks if shells fulfill orientation condition, i.e. if each edge is, either present once (free edge) or twice (connected edge) but with different orientations (FORWARD/REVERSED) Edges which do not fulfill these conditions are bad.
    bool IsLoaded (const TopoDS_Shape &shape) const
     Tells if a shape is loaded (only shells are checked).
    int NbLoaded () const
     Returns the actual number of loaded shapes (i.e. shells).
    TopoDS_Shape Loaded (const int numnum) const
     Returns a loaded shape specified by its rank number. Returns null shape if <num> is out of range.
    bool HasBadEdges () const
     Tells if at least one edge is recorded as bad.
    TopoDS_Compound BadEdges () const
     Returns the list of bad edges as a Compound It is empty (not null) if no edge are recorded as bad.
    bool HasFreeEdges () const
     Tells if at least one edge is recorded as free (not connected).
    TopoDS_Compound FreeEdges () const
     Returns the list of free (not connected) edges as a Compound It is empty (not null) if no edge are recorded as free.
    bool HasConnectedEdges () const
     Tells if at least one edge is connected (shared twice or more).

    Detailed Description

    This class provides operators to analyze edges orientation in the shell.

    Constructor & Destructor Documentation

    ◆ ShapeAnalysis_Shell()

    ShapeAnalysis_Shell::ShapeAnalysis_Shell ( )

    Empty constructor.

    Member Function Documentation

    ◆ BadEdges()

    TopoDS_Compound ShapeAnalysis_Shell::BadEdges ( ) const

    Returns the list of bad edges as a Compound It is empty (not null) if no edge are recorded as bad.

    ◆ CheckOrientedShells()

    bool ShapeAnalysis_Shell::CheckOrientedShells ( const TopoDS_Shape & shape,
    const bool alsofree = false,
    const bool checkinternaledges = false )

    Checks if shells fulfill orientation condition, i.e. if each edge is, either present once (free edge) or twice (connected edge) but with different orientations (FORWARD/REVERSED) Edges which do not fulfill these conditions are bad.

    If <alsofree> is True free edges are considered. Free edges can be queried but are not bad

    ◆ Clear()

    void ShapeAnalysis_Shell::Clear ( )

    Clears data about loaded shells and performed checks.

    ◆ FreeEdges()

    TopoDS_Compound ShapeAnalysis_Shell::FreeEdges ( ) const

    Returns the list of free (not connected) edges as a Compound It is empty (not null) if no edge are recorded as free.

    ◆ HasBadEdges()

    bool ShapeAnalysis_Shell::HasBadEdges ( ) const

    Tells if at least one edge is recorded as bad.

    ◆ HasConnectedEdges()

    bool ShapeAnalysis_Shell::HasConnectedEdges ( ) const

    Tells if at least one edge is connected (shared twice or more).

    ◆ HasFreeEdges()

    bool ShapeAnalysis_Shell::HasFreeEdges ( ) const

    Tells if at least one edge is recorded as free (not connected).

    ◆ IsLoaded()

    bool ShapeAnalysis_Shell::IsLoaded ( const TopoDS_Shape & shape) const

    Tells if a shape is loaded (only shells are checked).

    ◆ Loaded()

    TopoDS_Shape ShapeAnalysis_Shell::Loaded ( const int num) const

    Returns a loaded shape specified by its rank number. Returns null shape if <num> is out of range.

    ◆ LoadShells()

    void ShapeAnalysis_Shell::LoadShells ( const TopoDS_Shape & shape)

    Adds shells contained in the <shape> to the list of loaded shells.

    ◆ NbLoaded()

    int ShapeAnalysis_Shell::NbLoaded ( ) const

    Returns the actual number of loaded shapes (i.e. shells).


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