Open CASCADE Technology
6.9.0
|
This class performs fast sewing of surfaces (faces). It supposes that all surfaces are finite and are naturally restricted by their bounds. Moreover, it supposes that stitched together surfaces have the same parameterization along common boundaries, therefore it does not perform time-consuming check for SameParameter property of edges. More...
#include <BRepBuilderAPI_FastSewing.hxx>
Data Structures | |
class | FS_Edge |
The struct corresponding to a edge. More... | |
struct | FS_Face |
The struct corresponding to an face. More... | |
struct | FS_Vertex |
The struct corresponding to a vertex. More... | |
class | NodeInspector |
This inspector will find a node nearest to the given point not far than on the given tolerance. More... | |
Public Types | |
enum | FS_Statuses { FS_OK = 0x00000000, FS_Degenerated = 0x00000001, FS_FindVertexError = 0x00000002, FS_FindEdgeError = 0x00000004, FS_FaceWithNullSurface = 0x00000008, FS_NotNaturalBoundsFace = 0x00000010, FS_InfiniteSurface = 0x00000020, FS_EmptyInput = 0x00000040, FS_Exception = 0x00000080 } |
Enumeration of result statuses. More... | |
typedef unsigned int | FS_VARStatuses |
Public Member Functions | |
BRepBuilderAPI_FastSewing (const Standard_Real theTolerance=1.0e-06) | |
Creates an object with tolerance of connexity. More... | |
Standard_Boolean | Add (const TopoDS_Shape &theShape) |
Adds faces of a shape. More... | |
Standard_Boolean | Add (const Handle< Geom_Surface > &theSurface) |
Adds a surface. More... | |
void | Perform (void) |
Compute resulted shape. More... | |
void | SetTolerance (const Standard_Real theToler) |
Sets tolerance. More... | |
Standard_Real | GetTolerance () const |
Returns tolerance. More... | |
const TopoDS_Shape & | GetResult () const |
Returns resulted shape. More... | |
FS_VARStatuses | GetStatuses (Standard_OStream *const theOS=0) |
Returns list of statuses. Print message if theOS != 0. More... | |
Public Member Functions inherited from Standard_Transient | |
Standard_Transient () | |
Empty constructor. More... | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. More... | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. More... | |
virtual | ~Standard_Transient () |
Destructor must be virtual. More... | |
virtual void | Delete () const |
Memory deallocator for transient classes. More... | |
virtual const Handle_Standard_Type & | DynamicType () const |
Returns a type information object about this object. More... | |
Standard_Boolean | IsInstance (const Handle_Standard_Type &theType) const |
Returns a true value if this is an instance of Type. More... | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. More... | |
Standard_Boolean | IsKind (const 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. More... | |
Standard_Boolean | IsKind (const Standard_CString 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. More... | |
virtual Handle_Standard_Transient | This () const |
Returns a Handle which references this object. Must never be called to objects created in stack. More... | |
Standard_Integer | GetRefCount () const |
Get the reference counter of this object. More... | |
Protected Member Functions | |
void | FindVertexes (const Standard_Integer theSurfID, NCollection_CellFilter< NodeInspector > &theCells) |
void | FindEdges (const Standard_Integer theSurfID) |
void | UpdateEdgeInfo (const Standard_Integer theIDPrevVertex, const Standard_Integer theIDCurrVertex, const Standard_Integer theFaceID, const Standard_Integer theIDCurvOnFace) |
void | CreateNewEdge (const Standard_Integer theIDPrevVertex, const Standard_Integer theIDCurrVertex, const Standard_Integer theFaceID, const Standard_Integer theIDCurvOnFace) |
Standard_Real | Compute3DRange () |
FS_VARStatuses | SetStatus (FS_Statuses theStatus) |
Sets status. Returns numeric value of the status set. More... | |
This class performs fast sewing of surfaces (faces). It supposes that all surfaces are finite and are naturally restricted by their bounds. Moreover, it supposes that stitched together surfaces have the same parameterization along common boundaries, therefore it does not perform time-consuming check for SameParameter property of edges.
For sewing, use this function as following:
typedef unsigned int BRepBuilderAPI_FastSewing::FS_VARStatuses |
BRepBuilderAPI_FastSewing::BRepBuilderAPI_FastSewing | ( | const Standard_Real | theTolerance = 1.0e-06 | ) |
Creates an object with tolerance of connexity.
Standard_Boolean BRepBuilderAPI_FastSewing::Add | ( | const TopoDS_Shape & | theShape | ) |
Adds faces of a shape.
Standard_Boolean BRepBuilderAPI_FastSewing::Add | ( | const Handle< Geom_Surface > & | theSurface | ) |
Adds a surface.
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
Returns resulted shape.
FS_VARStatuses BRepBuilderAPI_FastSewing::GetStatuses | ( | Standard_OStream *const | theOS = 0 | ) |
Returns list of statuses. Print message if theOS != 0.
|
inline |
Returns tolerance.
void BRepBuilderAPI_FastSewing::Perform | ( | void | ) |
Compute resulted shape.
|
inlineprotected |
Sets status. Returns numeric value of the status set.
|
inline |
Sets tolerance.
|
protected |