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

    Provides methods to. More...

    #include <BRepBuilderAPI_Sewing.hxx>

    Inheritance diagram for BRepBuilderAPI_Sewing:

    Public Member Functions

     BRepBuilderAPI_Sewing (const double tolerance=1.0e-06, const bool option1=true, const bool option2=true, const bool option3=true, const bool option4=false)
     Creates an object with tolerance of connexity option for sewing (if false only control) option for analysis of degenerated shapes option for cutting of free edges. option for non manifold processing.
    void Init (const double tolerance=1.0e-06, const bool option1=true, const bool option2=true, const bool option3=true, const bool option4=false)
     initialize the parameters if necessary
    void Load (const TopoDS_Shape &shape)
     Loads the context shape.
    void Add (const TopoDS_Shape &shape)
     Defines the shapes to be sewed or controlled.
    void Perform (const Message_ProgressRange &theProgress=Message_ProgressRange())
     Computing theProgress - progress indicator of algorithm.
    const TopoDS_ShapeSewedShape () const
     Gives the sewed shape a null shape if nothing constructed may be a face, a shell, a solid or a compound.
    void SetContext (const occ::handle< BRepTools_ReShape > &theContext)
     set context
    const occ::handle< BRepTools_ReShape > & GetContext () const
     return context
    int NbFreeEdges () const
     Gives the number of free edges (edge shared by one face).
    const TopoDS_EdgeFreeEdge (const int indexindex) const
     Gives each free edge.
    int NbMultipleEdges () const
     Gives the number of multiple edges (edge shared by more than two faces).
    const TopoDS_EdgeMultipleEdge (const int indexindex) const
     Gives each multiple edge.
    int NbContigousEdges () const
     Gives the number of contiguous edges (edge shared by two faces).
    const TopoDS_EdgeContigousEdge (const int indexindex) const
     Gives each contiguous edge.
    const NCollection_List< TopoDS_Shape > & ContigousEdgeCouple (const int indexindex) const
     Gives the sections (edge) belonging to a contiguous edge.
    bool IsSectionBound (const TopoDS_Edge &section) const
     Indicates if a section is bound (before use SectionToBoundary).
    const TopoDS_EdgeSectionToBoundary (const TopoDS_Edge &section) const
     Gives the original edge (free boundary) which becomes the the section. Remember that sections constitute common edges. This information is important for control because with original edge we can find the surface to which the section is attached.
    int NbDegeneratedShapes () const
     Gives the number of degenerated shapes.
    const TopoDS_ShapeDegeneratedShape (const int indexindex) const
     Gives each degenerated shape.
    bool IsDegenerated (const TopoDS_Shape &shape) const
     Indicates if a input shape is degenerated.
    bool IsModified (const TopoDS_Shape &shape) const
     Indicates if a input shape has been modified.
    const TopoDS_ShapeModified (const TopoDS_Shape &shape) const
     Gives a modifieded shape.
    bool IsModifiedSubShape (const TopoDS_Shape &shape) const
     Indicates if a input subshape has been modified.
    TopoDS_Shape ModifiedSubShape (const TopoDS_Shape &shape) const
     Gives a modifieded subshape.
    void Dump () const
     print the information
    int NbDeletedFaces () const
     Gives the number of deleted faces (faces smallest than tolerance).
    const TopoDS_FaceDeletedFace (const int indexindex) const
     Gives each deleted face.
    TopoDS_Face WhichFace (const TopoDS_Edge &theEdg, const int indexindex=1) const
     Gives a modified shape.
    bool SameParameterMode () const
     Gets same parameter mode.
    void SetSameParameterMode (const bool SameParameterMode)
     Sets same parameter mode.
    double Tolerance () const
     Gives set tolerance.
    void SetTolerance (const double theToler)
     Sets tolerance.
    double MinTolerance () const
     Gives set min tolerance.
    void SetMinTolerance (const double theMinToler)
     Sets min tolerance.
    double MaxTolerance () const
     Gives set max tolerance.
    void SetMaxTolerance (const double theMaxToler)
     Sets max tolerance.
    bool FaceMode () const
     Returns mode for sewing faces By default - true.
    void SetFaceMode (const bool theFaceMode)
     Sets mode for sewing faces By default - true.
    bool FloatingEdgesMode () const
     Returns mode for sewing floating edges By default - false.
    void SetFloatingEdgesMode (const bool theFloatingEdgesMode)
     Sets mode for sewing floating edges By default - false. Returns mode for cutting floating edges By default - false. Sets mode for cutting floating edges By default - false.
    bool LocalTolerancesMode () const
     Returns mode for accounting of local tolerances of edges and vertices during of merging.
    void SetLocalTolerancesMode (const bool theLocalTolerancesMode)
     Sets mode for accounting of local tolerances of edges and vertices during of merging in this case WorkTolerance = myTolerance + tolEdge1+ tolEdg2;.
    void SetNonManifoldMode (const bool theNonManifoldMode)
     Sets mode for non-manifold sewing.
    bool NonManifoldMode () const
     Gets mode for non-manifold sewing.
    Public Member Functions inherited from Standard_Transient
     Standard_Transient ()
     Empty constructor.
     Standard_Transient (const Standard_Transient &)
     Copy constructor – does nothing.
    Standard_Transientoperator= (const Standard_Transient &)
     Assignment operator, needed to avoid copying reference counter.
    virtual ~Standard_Transient ()=default
     Destructor must be virtual.
    virtual const opencascade::handle< Standard_Type > & DynamicType () const
     Returns a type descriptor about this object.
    bool IsInstance (const opencascade::handle< Standard_Type > &theType) const
     Returns a true value if this is an instance of Type.
    bool IsInstance (const char *const theTypeName) const
     Returns a true value if this is an instance of TypeName.
    bool IsKind (const opencascade::handle< Standard_Type > &theType) const
     Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
    bool IsKind (const char *const theTypeName) const
     Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
    Standard_TransientThis () const
     Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
    int GetRefCount () const noexcept
     Get the reference counter of this object.
    void IncrementRefCounter () noexcept
     Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
    int DecrementRefCounter () noexcept
     Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
    virtual void Delete () const
     Memory deallocator for transient classes.

    Protected Member Functions

    void Cutting (const Message_ProgressRange &theProgress=Message_ProgressRange())
     Performs cutting of sections theProgress - progress indicator of processing.
    void Merging (const bool passage, const Message_ProgressRange &theProgress=Message_ProgressRange())
    bool IsMergedClosed (const TopoDS_Edge &Edge1, const TopoDS_Edge &Edge2, const TopoDS_Face &fase) const
    bool FindCandidates (NCollection_Sequence< TopoDS_Shape > &seqSections, NCollection_IndexedMap< int > &mapReference, NCollection_Sequence< int > &seqCandidates, NCollection_Sequence< bool > &seqOrientations)
    void AnalysisNearestEdges (const NCollection_Sequence< TopoDS_Shape > &sequenceSec, NCollection_Sequence< int > &seqIndCandidate, NCollection_Sequence< bool > &seqOrientations, const bool evalDist=true)
    bool MergedNearestEdges (const TopoDS_Shape &edge, NCollection_Sequence< TopoDS_Shape > &SeqMergedEdge, NCollection_Sequence< bool > &SeqMergedOri)
     Merged nearest edges.
    void EdgeProcessing (const Message_ProgressRange &theProgress=Message_ProgressRange())
    void EdgeRegularity (const Message_ProgressRange &theProgress=Message_ProgressRange())
     Recompute regularity on merged edges.
    void CreateOutputInformations ()
    virtual bool IsUClosedSurface (const occ::handle< Geom_Surface > &surf, const TopoDS_Shape &theEdge, const TopLoc_Location &theloc) const
     Defines if surface is U closed.
    virtual bool IsVClosedSurface (const occ::handle< Geom_Surface > &surf, const TopoDS_Shape &theEdge, const TopLoc_Location &theloc) const
     Defines if surface is V closed.
    virtual void FaceAnalysis (const Message_ProgressRange &theProgress=Message_ProgressRange())
     This method is called from Perform only theProgress - progress indicator of processing.
    virtual void FindFreeBoundaries ()
     This method is called from Perform only.
    virtual void VerticesAssembling (const Message_ProgressRange &theProgress=Message_ProgressRange())
     This method is called from Perform only theProgress - progress indicator of processing.
    virtual void CreateSewedShape ()
     This method is called from Perform only.
    virtual void GetFreeWires (NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHasher > &MapFreeEdges, NCollection_Sequence< TopoDS_Shape > &seqWires)
     Get wire from free edges. This method is called from EdgeProcessing only.
    virtual void EvaluateAngulars (NCollection_Sequence< TopoDS_Shape > &sequenceSec, NCollection_Array1< bool > &secForward, NCollection_Array1< double > &tabAng, const int indRef) const
     This method is called from MergingOfSections only.
    virtual void EvaluateDistances (NCollection_Sequence< TopoDS_Shape > &sequenceSec, NCollection_Array1< bool > &secForward, NCollection_Array1< double > &tabAng, NCollection_Array1< double > &arrLen, NCollection_Array1< double > &tabMinDist, const int indRef) const
     This method is called from MergingOfSections only.
    virtual occ::handle< Geom2d_CurveSameRange (const occ::handle< Geom2d_Curve > &CurvePtr, const double FirstOnCurve, const double LastOnCurve, const double RequestedFirst, const double RequestedLast) const
     This method is called from SameParameterEdge only.
    virtual void SameParameter (const TopoDS_Edge &edge) const
     This method is called from SameParameterEdge only.
    virtual TopoDS_Edge SameParameterEdge (const TopoDS_Shape &edge, const NCollection_Sequence< TopoDS_Shape > &seqEdges, const NCollection_Sequence< bool > &seqForward, NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > &mapMerged, const occ::handle< BRepTools_ReShape > &locReShape)
     This method is called from Merging only.
    virtual TopoDS_Edge SameParameterEdge (const TopoDS_Edge &edge1, const TopoDS_Edge &edge2, const NCollection_List< TopoDS_Shape > &listFaces1, const NCollection_List< TopoDS_Shape > &listFaces2, const bool secForward, int &whichSec, const bool firstCall=true)
     This method is called from Merging only.
    void ProjectPointsOnCurve (const NCollection_Array1< gp_Pnt > &arrPnt, const occ::handle< Geom_Curve > &Crv, const double firstfirst, const double last, NCollection_Array1< double > &arrDist, NCollection_Array1< double > &arrPara, NCollection_Array1< gp_Pnt > &arrProj, const bool isConsiderEnds) const
     Projects points on curve This method is called from Cutting only.
    virtual void CreateCuttingNodes (const NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHasher > &MapVert, const TopoDS_Shape &bound, const TopoDS_Shape &vfirst, const TopoDS_Shape &vlast, const NCollection_Array1< double > &arrDist, const NCollection_Array1< double > &arrPara, const NCollection_Array1< gp_Pnt > &arrPnt, NCollection_Sequence< TopoDS_Shape > &seqNode, NCollection_Sequence< double > &seqPara)
     Creates cutting vertices on projections This method is called from Cutting only.
    virtual void CreateSections (const TopoDS_Shape &bound, const NCollection_Sequence< TopoDS_Shape > &seqNode, const NCollection_Sequence< double > &seqPara, NCollection_List< TopoDS_Shape > &listEdge)
     Performs cutting of bound This method is called from Cutting only.
    virtual void SameParameterShape ()
     Makes all edges from shape same parameter if SameParameterMode is equal to true This method is called from Perform only.

    Protected Attributes

    double myTolerance
    bool mySewing
    bool myAnalysis
    bool myCutting
    bool myNonmanifold
    NCollection_IndexedDataMap< TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHashermyOldShapes
    TopoDS_Shape mySewedShape
    NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHashermyDegenerated
    NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHashermyFreeEdges
    NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHashermyMultipleEdges
    NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHashermyContigousEdges
    NCollection_DataMap< TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHashermyContigSecBound
    int myNbShapes
    int myNbVertices
    int myNbEdges
    NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHashermyBoundFaces
    NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHashermyBoundSections
    NCollection_DataMap< TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHashermySectionBound
    NCollection_IndexedDataMap< TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHashermyVertexNode
    NCollection_IndexedDataMap< TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHashermyVertexNodeFree
    NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHashermyNodeSections
    NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHashermyCuttingNode
    NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHashermyLittleFace
    TopoDS_Shape myShape
    occ::handle< BRepTools_ReShapemyReShape

    Additional Inherited Members

    typedef void base_type
     Returns a type descriptor about this object.
    static constexpr const char * get_type_name ()
     Returns a type descriptor about this object.
    static const opencascade::handle< Standard_Type > & get_type_descriptor ()
     Returns type descriptor of Standard_Transient class.

    Detailed Description

    Provides methods to.

    • identify possible contiguous boundaries (for control afterwards (of continuity: C0, C1, ...))
    • assemble contiguous shapes into one shape. Only manifold shapes will be found. Sewing will not be done in case of multiple edges.

    For sewing, use this function as following:

    • create an empty object
    • default tolerance 1.E-06
    • with face analysis on
    • with sewing operation on
    • set the cutting option as you need (default True)
    • define a tolerance
    • add shapes to be sewed -> Add
    • compute -> Perform
    • output the resulted shapes
    • output free edges if necessary
    • output multiple edges if necessary
    • output the problems if any

    Constructor & Destructor Documentation

    ◆ BRepBuilderAPI_Sewing()

    BRepBuilderAPI_Sewing::BRepBuilderAPI_Sewing ( const double tolerance = 1.0e-06,
    const bool option1 = true,
    const bool option2 = true,
    const bool option3 = true,
    const bool option4 = false )

    Creates an object with tolerance of connexity option for sewing (if false only control) option for analysis of degenerated shapes option for cutting of free edges. option for non manifold processing.

    Member Function Documentation

    ◆ Add()

    void BRepBuilderAPI_Sewing::Add ( const TopoDS_Shape & shape)

    Defines the shapes to be sewed or controlled.

    ◆ AnalysisNearestEdges()

    void BRepBuilderAPI_Sewing::AnalysisNearestEdges ( const NCollection_Sequence< TopoDS_Shape > & sequenceSec,
    NCollection_Sequence< int > & seqIndCandidate,
    NCollection_Sequence< bool > & seqOrientations,
    const bool evalDist = true )
    protected

    ◆ ContigousEdge()

    const TopoDS_Edge & BRepBuilderAPI_Sewing::ContigousEdge ( const int index) const

    Gives each contiguous edge.

    ◆ ContigousEdgeCouple()

    const NCollection_List< TopoDS_Shape > & BRepBuilderAPI_Sewing::ContigousEdgeCouple ( const int index) const

    Gives the sections (edge) belonging to a contiguous edge.

    ◆ CreateCuttingNodes()

    virtual void BRepBuilderAPI_Sewing::CreateCuttingNodes ( const NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHasher > & MapVert,
    const TopoDS_Shape & bound,
    const TopoDS_Shape & vfirst,
    const TopoDS_Shape & vlast,
    const NCollection_Array1< double > & arrDist,
    const NCollection_Array1< double > & arrPara,
    const NCollection_Array1< gp_Pnt > & arrPnt,
    NCollection_Sequence< TopoDS_Shape > & seqNode,
    NCollection_Sequence< double > & seqPara )
    protectedvirtual

    Creates cutting vertices on projections This method is called from Cutting only.

    ◆ CreateOutputInformations()

    void BRepBuilderAPI_Sewing::CreateOutputInformations ( )
    protected

    ◆ CreateSections()

    virtual void BRepBuilderAPI_Sewing::CreateSections ( const TopoDS_Shape & bound,
    const NCollection_Sequence< TopoDS_Shape > & seqNode,
    const NCollection_Sequence< double > & seqPara,
    NCollection_List< TopoDS_Shape > & listEdge )
    protectedvirtual

    Performs cutting of bound This method is called from Cutting only.

    ◆ CreateSewedShape()

    virtual void BRepBuilderAPI_Sewing::CreateSewedShape ( )
    protectedvirtual

    This method is called from Perform only.

    ◆ Cutting()

    void BRepBuilderAPI_Sewing::Cutting ( const Message_ProgressRange & theProgress = Message_ProgressRange())
    protected

    Performs cutting of sections theProgress - progress indicator of processing.

    ◆ DegeneratedShape()

    const TopoDS_Shape & BRepBuilderAPI_Sewing::DegeneratedShape ( const int index) const

    Gives each degenerated shape.

    ◆ DeletedFace()

    const TopoDS_Face & BRepBuilderAPI_Sewing::DeletedFace ( const int index) const

    Gives each deleted face.

    ◆ Dump()

    void BRepBuilderAPI_Sewing::Dump ( ) const

    print the information

    ◆ EdgeProcessing()

    void BRepBuilderAPI_Sewing::EdgeProcessing ( const Message_ProgressRange & theProgress = Message_ProgressRange())
    protected

    ◆ EdgeRegularity()

    void BRepBuilderAPI_Sewing::EdgeRegularity ( const Message_ProgressRange & theProgress = Message_ProgressRange())
    protected

    Recompute regularity on merged edges.

    ◆ EvaluateAngulars()

    virtual void BRepBuilderAPI_Sewing::EvaluateAngulars ( NCollection_Sequence< TopoDS_Shape > & sequenceSec,
    NCollection_Array1< bool > & secForward,
    NCollection_Array1< double > & tabAng,
    const int indRef ) const
    protectedvirtual

    This method is called from MergingOfSections only.

    ◆ EvaluateDistances()

    virtual void BRepBuilderAPI_Sewing::EvaluateDistances ( NCollection_Sequence< TopoDS_Shape > & sequenceSec,
    NCollection_Array1< bool > & secForward,
    NCollection_Array1< double > & tabAng,
    NCollection_Array1< double > & arrLen,
    NCollection_Array1< double > & tabMinDist,
    const int indRef ) const
    protectedvirtual

    This method is called from MergingOfSections only.

    ◆ FaceAnalysis()

    virtual void BRepBuilderAPI_Sewing::FaceAnalysis ( const Message_ProgressRange & theProgress = Message_ProgressRange())
    protectedvirtual

    This method is called from Perform only theProgress - progress indicator of processing.

    ◆ FaceMode()

    bool BRepBuilderAPI_Sewing::FaceMode ( ) const

    Returns mode for sewing faces By default - true.

    ◆ FindCandidates()

    bool BRepBuilderAPI_Sewing::FindCandidates ( NCollection_Sequence< TopoDS_Shape > & seqSections,
    NCollection_IndexedMap< int > & mapReference,
    NCollection_Sequence< int > & seqCandidates,
    NCollection_Sequence< bool > & seqOrientations )
    protected

    ◆ FindFreeBoundaries()

    virtual void BRepBuilderAPI_Sewing::FindFreeBoundaries ( )
    protectedvirtual

    This method is called from Perform only.

    ◆ FloatingEdgesMode()

    bool BRepBuilderAPI_Sewing::FloatingEdgesMode ( ) const

    Returns mode for sewing floating edges By default - false.

    ◆ FreeEdge()

    const TopoDS_Edge & BRepBuilderAPI_Sewing::FreeEdge ( const int index) const

    Gives each free edge.

    ◆ GetContext()

    const occ::handle< BRepTools_ReShape > & BRepBuilderAPI_Sewing::GetContext ( ) const

    return context

    ◆ GetFreeWires()

    virtual void BRepBuilderAPI_Sewing::GetFreeWires ( NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHasher > & MapFreeEdges,
    NCollection_Sequence< TopoDS_Shape > & seqWires )
    protectedvirtual

    Get wire from free edges. This method is called from EdgeProcessing only.

    ◆ Init()

    void BRepBuilderAPI_Sewing::Init ( const double tolerance = 1.0e-06,
    const bool option1 = true,
    const bool option2 = true,
    const bool option3 = true,
    const bool option4 = false )

    initialize the parameters if necessary

    ◆ IsDegenerated()

    bool BRepBuilderAPI_Sewing::IsDegenerated ( const TopoDS_Shape & shape) const

    Indicates if a input shape is degenerated.

    ◆ IsMergedClosed()

    bool BRepBuilderAPI_Sewing::IsMergedClosed ( const TopoDS_Edge & Edge1,
    const TopoDS_Edge & Edge2,
    const TopoDS_Face & fase ) const
    protected

    ◆ IsModified()

    bool BRepBuilderAPI_Sewing::IsModified ( const TopoDS_Shape & shape) const

    Indicates if a input shape has been modified.

    ◆ IsModifiedSubShape()

    bool BRepBuilderAPI_Sewing::IsModifiedSubShape ( const TopoDS_Shape & shape) const

    Indicates if a input subshape has been modified.

    ◆ IsSectionBound()

    bool BRepBuilderAPI_Sewing::IsSectionBound ( const TopoDS_Edge & section) const

    Indicates if a section is bound (before use SectionToBoundary).

    ◆ IsUClosedSurface()

    virtual bool BRepBuilderAPI_Sewing::IsUClosedSurface ( const occ::handle< Geom_Surface > & surf,
    const TopoDS_Shape & theEdge,
    const TopLoc_Location & theloc ) const
    protectedvirtual

    Defines if surface is U closed.

    ◆ IsVClosedSurface()

    virtual bool BRepBuilderAPI_Sewing::IsVClosedSurface ( const occ::handle< Geom_Surface > & surf,
    const TopoDS_Shape & theEdge,
    const TopLoc_Location & theloc ) const
    protectedvirtual

    Defines if surface is V closed.

    ◆ Load()

    void BRepBuilderAPI_Sewing::Load ( const TopoDS_Shape & shape)

    Loads the context shape.

    ◆ LocalTolerancesMode()

    bool BRepBuilderAPI_Sewing::LocalTolerancesMode ( ) const

    Returns mode for accounting of local tolerances of edges and vertices during of merging.

    ◆ MaxTolerance()

    double BRepBuilderAPI_Sewing::MaxTolerance ( ) const

    Gives set max tolerance.

    ◆ MergedNearestEdges()

    bool BRepBuilderAPI_Sewing::MergedNearestEdges ( const TopoDS_Shape & edge,
    NCollection_Sequence< TopoDS_Shape > & SeqMergedEdge,
    NCollection_Sequence< bool > & SeqMergedOri )
    protected

    Merged nearest edges.

    ◆ Merging()

    void BRepBuilderAPI_Sewing::Merging ( const bool passage,
    const Message_ProgressRange & theProgress = Message_ProgressRange() )
    protected

    ◆ MinTolerance()

    double BRepBuilderAPI_Sewing::MinTolerance ( ) const

    Gives set min tolerance.

    ◆ Modified()

    const TopoDS_Shape & BRepBuilderAPI_Sewing::Modified ( const TopoDS_Shape & shape) const

    Gives a modifieded shape.

    ◆ ModifiedSubShape()

    TopoDS_Shape BRepBuilderAPI_Sewing::ModifiedSubShape ( const TopoDS_Shape & shape) const

    Gives a modifieded subshape.

    ◆ MultipleEdge()

    const TopoDS_Edge & BRepBuilderAPI_Sewing::MultipleEdge ( const int index) const

    Gives each multiple edge.

    ◆ NbContigousEdges()

    int BRepBuilderAPI_Sewing::NbContigousEdges ( ) const

    Gives the number of contiguous edges (edge shared by two faces).

    ◆ NbDegeneratedShapes()

    int BRepBuilderAPI_Sewing::NbDegeneratedShapes ( ) const

    Gives the number of degenerated shapes.

    ◆ NbDeletedFaces()

    int BRepBuilderAPI_Sewing::NbDeletedFaces ( ) const

    Gives the number of deleted faces (faces smallest than tolerance).

    ◆ NbFreeEdges()

    int BRepBuilderAPI_Sewing::NbFreeEdges ( ) const

    Gives the number of free edges (edge shared by one face).

    ◆ NbMultipleEdges()

    int BRepBuilderAPI_Sewing::NbMultipleEdges ( ) const

    Gives the number of multiple edges (edge shared by more than two faces).

    ◆ NonManifoldMode()

    bool BRepBuilderAPI_Sewing::NonManifoldMode ( ) const

    Gets mode for non-manifold sewing.

    INTERNAL FUNCTIONS —

    ◆ Perform()

    void BRepBuilderAPI_Sewing::Perform ( const Message_ProgressRange & theProgress = Message_ProgressRange())

    Computing theProgress - progress indicator of algorithm.

    ◆ ProjectPointsOnCurve()

    void BRepBuilderAPI_Sewing::ProjectPointsOnCurve ( const NCollection_Array1< gp_Pnt > & arrPnt,
    const occ::handle< Geom_Curve > & Crv,
    const double first,
    const double last,
    NCollection_Array1< double > & arrDist,
    NCollection_Array1< double > & arrPara,
    NCollection_Array1< gp_Pnt > & arrProj,
    const bool isConsiderEnds ) const
    protected

    Projects points on curve This method is called from Cutting only.

    ◆ SameParameter()

    virtual void BRepBuilderAPI_Sewing::SameParameter ( const TopoDS_Edge & edge) const
    protectedvirtual

    This method is called from SameParameterEdge only.

    ◆ SameParameterEdge() [1/2]

    virtual TopoDS_Edge BRepBuilderAPI_Sewing::SameParameterEdge ( const TopoDS_Edge & edge1,
    const TopoDS_Edge & edge2,
    const NCollection_List< TopoDS_Shape > & listFaces1,
    const NCollection_List< TopoDS_Shape > & listFaces2,
    const bool secForward,
    int & whichSec,
    const bool firstCall = true )
    protectedvirtual

    This method is called from Merging only.

    ◆ SameParameterEdge() [2/2]

    virtual TopoDS_Edge BRepBuilderAPI_Sewing::SameParameterEdge ( const TopoDS_Shape & edge,
    const NCollection_Sequence< TopoDS_Shape > & seqEdges,
    const NCollection_Sequence< bool > & seqForward,
    NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > & mapMerged,
    const occ::handle< BRepTools_ReShape > & locReShape )
    protectedvirtual

    This method is called from Merging only.

    ◆ SameParameterMode()

    bool BRepBuilderAPI_Sewing::SameParameterMode ( ) const

    Gets same parameter mode.

    ◆ SameParameterShape()

    virtual void BRepBuilderAPI_Sewing::SameParameterShape ( )
    protectedvirtual

    Makes all edges from shape same parameter if SameParameterMode is equal to true This method is called from Perform only.

    ◆ SameRange()

    virtual occ::handle< Geom2d_Curve > BRepBuilderAPI_Sewing::SameRange ( const occ::handle< Geom2d_Curve > & CurvePtr,
    const double FirstOnCurve,
    const double LastOnCurve,
    const double RequestedFirst,
    const double RequestedLast ) const
    protectedvirtual

    This method is called from SameParameterEdge only.

    ◆ SectionToBoundary()

    const TopoDS_Edge & BRepBuilderAPI_Sewing::SectionToBoundary ( const TopoDS_Edge & section) const

    Gives the original edge (free boundary) which becomes the the section. Remember that sections constitute common edges. This information is important for control because with original edge we can find the surface to which the section is attached.

    ◆ SetContext()

    void BRepBuilderAPI_Sewing::SetContext ( const occ::handle< BRepTools_ReShape > & theContext)

    set context

    ◆ SetFaceMode()

    void BRepBuilderAPI_Sewing::SetFaceMode ( const bool theFaceMode)

    Sets mode for sewing faces By default - true.

    ◆ SetFloatingEdgesMode()

    void BRepBuilderAPI_Sewing::SetFloatingEdgesMode ( const bool theFloatingEdgesMode)

    Sets mode for sewing floating edges By default - false. Returns mode for cutting floating edges By default - false. Sets mode for cutting floating edges By default - false.

    ◆ SetLocalTolerancesMode()

    void BRepBuilderAPI_Sewing::SetLocalTolerancesMode ( const bool theLocalTolerancesMode)

    Sets mode for accounting of local tolerances of edges and vertices during of merging in this case WorkTolerance = myTolerance + tolEdge1+ tolEdg2;.

    ◆ SetMaxTolerance()

    void BRepBuilderAPI_Sewing::SetMaxTolerance ( const double theMaxToler)

    Sets max tolerance.

    ◆ SetMinTolerance()

    void BRepBuilderAPI_Sewing::SetMinTolerance ( const double theMinToler)

    Sets min tolerance.

    ◆ SetNonManifoldMode()

    void BRepBuilderAPI_Sewing::SetNonManifoldMode ( const bool theNonManifoldMode)

    Sets mode for non-manifold sewing.

    ◆ SetSameParameterMode()

    void BRepBuilderAPI_Sewing::SetSameParameterMode ( const bool SameParameterMode)

    Sets same parameter mode.

    ◆ SetTolerance()

    void BRepBuilderAPI_Sewing::SetTolerance ( const double theToler)

    Sets tolerance.

    ◆ SewedShape()

    const TopoDS_Shape & BRepBuilderAPI_Sewing::SewedShape ( ) const

    Gives the sewed shape a null shape if nothing constructed may be a face, a shell, a solid or a compound.

    ◆ Tolerance()

    double BRepBuilderAPI_Sewing::Tolerance ( ) const

    Gives set tolerance.

    ◆ VerticesAssembling()

    virtual void BRepBuilderAPI_Sewing::VerticesAssembling ( const Message_ProgressRange & theProgress = Message_ProgressRange())
    protectedvirtual

    This method is called from Perform only theProgress - progress indicator of processing.

    ◆ WhichFace()

    TopoDS_Face BRepBuilderAPI_Sewing::WhichFace ( const TopoDS_Edge & theEdg,
    const int index = 1 ) const

    Gives a modified shape.

    Field Documentation

    ◆ myAnalysis

    bool BRepBuilderAPI_Sewing::myAnalysis
    protected

    ◆ myBoundFaces

    ◆ myBoundSections

    NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myBoundSections
    protected

    ◆ myContigousEdges

    NCollection_IndexedDataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myContigousEdges
    protected

    ◆ myContigSecBound

    NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myContigSecBound
    protected

    ◆ myCutting

    bool BRepBuilderAPI_Sewing::myCutting
    protected

    ◆ myCuttingNode

    NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myCuttingNode
    protected

    ◆ myDegenerated

    NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myDegenerated
    protected

    ◆ myFreeEdges

    NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myFreeEdges
    protected

    ◆ myLittleFace

    NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myLittleFace
    protected

    ◆ myMultipleEdges

    NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myMultipleEdges
    protected

    ◆ myNbEdges

    int BRepBuilderAPI_Sewing::myNbEdges
    protected

    ◆ myNbShapes

    int BRepBuilderAPI_Sewing::myNbShapes
    protected

    ◆ myNbVertices

    int BRepBuilderAPI_Sewing::myNbVertices
    protected

    ◆ myNodeSections

    NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myNodeSections
    protected

    ◆ myNonmanifold

    bool BRepBuilderAPI_Sewing::myNonmanifold
    protected

    ◆ myOldShapes

    NCollection_IndexedDataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myOldShapes
    protected

    ◆ myReShape

    occ::handle<BRepTools_ReShape> BRepBuilderAPI_Sewing::myReShape
    protected

    ◆ mySectionBound

    NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::mySectionBound
    protected

    ◆ mySewedShape

    TopoDS_Shape BRepBuilderAPI_Sewing::mySewedShape
    protected

    ◆ mySewing

    bool BRepBuilderAPI_Sewing::mySewing
    protected

    ◆ myShape

    TopoDS_Shape BRepBuilderAPI_Sewing::myShape
    protected

    ◆ myTolerance

    double BRepBuilderAPI_Sewing::myTolerance
    protected

    ◆ myVertexNode

    NCollection_IndexedDataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myVertexNode
    protected

    ◆ myVertexNodeFree

    NCollection_IndexedDataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> BRepBuilderAPI_Sewing::myVertexNodeFree
    protected

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