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

    A tool to substitute subshapes by other shapes. More...

    #include <BRepTools_Substitution.hxx>

    Public Member Functions

     BRepTools_Substitution ()
    void Clear ()
     Reset all the fields.
    void Substitute (const TopoDS_Shape &OldShape, const NCollection_List< TopoDS_Shape > &NewShapes)
     <Oldshape> will be replaced by <NewShapes>.
    void Build (const TopoDS_Shape &S)
     Build NewShape from if its subshapes has modified.
    bool IsCopied (const TopoDS_Shape &S) const
     Returns True if has been replaced.
    const NCollection_List< TopoDS_Shape > & Copy (const TopoDS_Shape &S) const
     Returns the set of shapes substituted to .

    Detailed Description

    A tool to substitute subshapes by other shapes.

    The user use the method Substitute to define the modifications. A set of shapes is designated to replace a initial shape.

    The method Build reconstructs a new Shape with the modifications.The Shape and the new shape are registered.

    Constructor & Destructor Documentation

    ◆ BRepTools_Substitution()

    BRepTools_Substitution::BRepTools_Substitution ( )

    Member Function Documentation

    ◆ Build()

    void BRepTools_Substitution::Build ( const TopoDS_Shape & S)

    Build NewShape from if its subshapes has modified.

    The methods <IsCopied> and <Copy> allows you to keep the resul of <Build>

    ◆ Clear()

    void BRepTools_Substitution::Clear ( )

    Reset all the fields.

    ◆ Copy()

    const NCollection_List< TopoDS_Shape > & BRepTools_Substitution::Copy ( const TopoDS_Shape & S) const

    Returns the set of shapes substituted to .

    ◆ IsCopied()

    bool BRepTools_Substitution::IsCopied ( const TopoDS_Shape & S) const

    Returns True if has been replaced.

    ◆ Substitute()

    void BRepTools_Substitution::Substitute ( const TopoDS_Shape & OldShape,
    const NCollection_List< TopoDS_Shape > & NewShapes )

    <Oldshape> will be replaced by <NewShapes>.

    <NewShapes> can be empty, in this case <OldShape> will disparate from its ancestors.

    if an item of <NewShapes> is oriented FORWARD. it will be oriented as <OldShape> in its ancestors. else it will be reversed.


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