OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BRepBuilderAPI_Copy Class Reference

    Duplication of a shape. A Copy object provides a framework for: More...

    #include <BRepBuilderAPI_Copy.hxx>

    Inheritance diagram for BRepBuilderAPI_Copy:

    Public Member Functions

     BRepBuilderAPI_Copy ()
     Constructs an empty copy framework. Use the function Perform to copy shapes.
     BRepBuilderAPI_Copy (const TopoDS_Shape &S, const bool copyGeom=true, const bool copyMesh=false)
     Constructs a copy framework and copies the shape S. Use the function Shape to access the result. If copyMesh is True, triangulation contained in original shape will be copied along with geometry (by default, triangulation gets lost). If copyGeom is False, only topological objects will be copied, while geometry and triangulation will be shared with original shape. Note: the constructed framework can be reused to copy other shapes: just specify them with the function Perform.
    void Perform (const TopoDS_Shape &S, const bool copyGeom=true, const bool copyMesh=false)
     Copies the shape S. Use the function Shape to access the result. If copyMesh is True, triangulation contained in original shape will be copied along with geometry (by default, triangulation gets lost). If copyGeom is False, only topological objects will be copied, while geometry and triangulation will be shared with original shape.
    Public Member Functions inherited from BRepBuilderAPI_ModifyShape
    const NCollection_List< TopoDS_Shape > & Modified (const TopoDS_Shape &S) override
     Returns the list of shapes modified from the shape .
    virtual TopoDS_Shape ModifiedShape (const TopoDS_Shape &S) const
     Returns the modified shape corresponding to . S can correspond to the entire initial shape or to its subshape. Exceptions Standard_NoSuchObject if S is not the initial shape or a subshape of the initial shape to which the transformation has been applied. Raises NoSuchObject from Standard if S is not the initial shape or a sub-shape of the initial shape.
    Public Member Functions inherited from BRepBuilderAPI_MakeShape
    virtual void Build (const Message_ProgressRange &theRange=Message_ProgressRange())
     This is called by Shape(). It does nothing but may be redefined.
    virtual const TopoDS_Shape & Shape ()
     Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built.
     operator TopoDS_Shape ()
    virtual const NCollection_List< TopoDS_Shape > & Generated (const TopoDS_Shape &S)
     Returns the list of shapes generated from the shape .
    virtual bool IsDeleted (const TopoDS_Shape &S)
     Returns true if the shape S has been deleted.
    Public Member Functions inherited from BRepBuilderAPI_Command
    virtual ~BRepBuilderAPI_Command ()
    virtual bool IsDone () const
    void Check () const
     Raises NotDone if done is false.

    Additional Inherited Members

    Protected Member Functions inherited from BRepBuilderAPI_ModifyShape
     BRepBuilderAPI_ModifyShape ()
     Empty constructor.
     BRepBuilderAPI_ModifyShape (const TopoDS_Shape &S)
     Initializes the modifier with the Shape , and set the field <myInitialShape> to .
     BRepBuilderAPI_ModifyShape (const occ::handle< BRepTools_Modification > &M)
     Set the field <myModification> with <M>.
     BRepBuilderAPI_ModifyShape (const TopoDS_Shape &S, const occ::handle< BRepTools_Modification > &M)
     Initializes the modifier with the Shape , and set the field <myInitialShape> to , and set the field <myModification> with <M>, the performs the modification.
    void DoModif (const TopoDS_Shape &S)
     Performs the previously given modification on the shape .
    void DoModif (const occ::handle< BRepTools_Modification > &M)
     Performs the modification <M> on a previously given shape.
    void DoModif (const TopoDS_Shape &S, const occ::handle< BRepTools_Modification > &M)
     Performs the modification <M> on the shape .
    Protected Member Functions inherited from BRepBuilderAPI_MakeShape
     BRepBuilderAPI_MakeShape ()
    Protected Member Functions inherited from BRepBuilderAPI_Command
     BRepBuilderAPI_Command ()
     Set done to False.
    void Done ()
     Set done to true.
    void NotDone ()
     Set done to false.
    Protected Attributes inherited from BRepBuilderAPI_ModifyShape
    BRepTools_Modifier myModifier
    TopoDS_Shape myInitialShape
    occ::handle< BRepTools_Modification > myModification
    Protected Attributes inherited from BRepBuilderAPI_MakeShape
    TopoDS_Shape myShape
    NCollection_List< TopoDS_Shape > myGenerated

    Detailed Description

    Duplication of a shape. A Copy object provides a framework for:

    • defining the construction of a duplicate shape,
    • implementing the construction algorithm, and
    • consulting the result.

    Constructor & Destructor Documentation

    ◆ BRepBuilderAPI_Copy() [1/2]

    BRepBuilderAPI_Copy::BRepBuilderAPI_Copy ( )

    Constructs an empty copy framework. Use the function Perform to copy shapes.

    ◆ BRepBuilderAPI_Copy() [2/2]

    BRepBuilderAPI_Copy::BRepBuilderAPI_Copy ( const TopoDS_Shape & S,
    const bool copyGeom = true,
    const bool copyMesh = false )

    Constructs a copy framework and copies the shape S. Use the function Shape to access the result. If copyMesh is True, triangulation contained in original shape will be copied along with geometry (by default, triangulation gets lost). If copyGeom is False, only topological objects will be copied, while geometry and triangulation will be shared with original shape. Note: the constructed framework can be reused to copy other shapes: just specify them with the function Perform.

    Member Function Documentation

    ◆ Perform()

    void BRepBuilderAPI_Copy::Perform ( const TopoDS_Shape & S,
    const bool copyGeom = true,
    const bool copyMesh = false )

    Copies the shape S. Use the function Shape to access the result. If copyMesh is True, triangulation contained in original shape will be copied along with geometry (by default, triangulation gets lost). If copyGeom is False, only topological objects will be copied, while geometry and triangulation will be shared with original shape.


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