|
| | 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_Shape & | SewedShape () 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_Edge & | FreeEdge (const int index) const |
| | Gives each free edge.
|
| |
| int | NbMultipleEdges () const |
| | Gives the number of multiple edges (edge shared by more than two faces)
|
| |
| const TopoDS_Edge & | MultipleEdge (const int index) const |
| | Gives each multiple edge.
|
| |
| int | NbContigousEdges () const |
| | Gives the number of contiguous edges (edge shared by two faces)
|
| |
| const TopoDS_Edge & | ContigousEdge (const int index) const |
| | Gives each contiguous edge.
|
| |
| const NCollection_List< TopoDS_Shape > & | ContigousEdgeCouple (const int index) const |
| | Gives the sections (edge) belonging to a contiguous edge.
|
| |
| bool | IsSectionBound (const TopoDS_Edge §ion) const |
| | Indicates if a section is bound (before use SectionToBoundary)
|
| |
| const TopoDS_Edge & | SectionToBoundary (const TopoDS_Edge §ion) 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_Shape & | DegeneratedShape (const int index) 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_Shape & | Modified (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_Face & | DeletedFace (const int index) const |
| | Gives each deleted face.
|
| |
| TopoDS_Face | WhichFace (const TopoDS_Edge &theEdg, const int index=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_Transient & | operator= (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_Transient * | This () 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.
|
| |
|
| 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_Curve > | SameRange (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 first, 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.
|
| |
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