Open CASCADE Technology 7.8.0
Static Public Member Functions
BRepAlgo Class Reference

The BRepAlgo class provides the following tools for: More...

#include <BRepAlgo.hxx>

Static Public Member Functions

static TopoDS_Wire ConcatenateWire (const TopoDS_Wire &Wire, const GeomAbs_Shape Option, const Standard_Real AngularTolerance=1.0e-4)
 this method makes a wire whose edges are C1 from a Wire whose edges could be G1. It removes a vertex between G1 edges. Option can be G1 or C1.
 
static TopoDS_Edge ConcatenateWireC0 (const TopoDS_Wire &Wire)
 this method makes an edge from a wire. Junction points between edges of wire may be sharp, resulting curve of the resulting edge may be C0.
 
static TopoDS_Wire ConvertWire (const TopoDS_Wire &theWire, const Standard_Real theAngleTolerance, const TopoDS_Face &theFace)
 Method of wire conversion, calls BRepAlgo_Approx internally.
 
static TopoDS_Face ConvertFace (const TopoDS_Face &theFace, const Standard_Real theAngleTolerance)
 Method of face conversion. The API corresponds to the method ConvertWire. This is a shortcut for calling ConvertWire() for each wire in theFace.
 
static Standard_Boolean IsValid (const TopoDS_Shape &S)
 Checks if the shape is "correct". If not, returns <Standard_False>, else returns <Standard_True>.
 
static Standard_Boolean IsValid (const TopTools_ListOfShape &theArgs, const TopoDS_Shape &theResult, const Standard_Boolean closedSolid=Standard_False, const Standard_Boolean GeomCtrl=Standard_True)
 Checks if the Generated and Modified Faces from the shapes <arguments> in the shape <result> are "correct". The args may be empty, then all faces will be checked. If <Closed> is True, only closed shape are valid. If <GeomCtrl> is False the geometry of new vertices and edges are not verified and the auto-intersection of new wires are not searched.
 
static Standard_Boolean IsTopologicallyValid (const TopoDS_Shape &S)
 Checks if the shape is "correct". If not, returns FALSE, else returns TRUE. This method differs from the previous one in the fact that no geometric controls (intersection of wires, pcurve validity) are performed.
 

Detailed Description

The BRepAlgo class provides the following tools for:

Member Function Documentation

◆ ConcatenateWire()

static TopoDS_Wire BRepAlgo::ConcatenateWire ( const TopoDS_Wire Wire,
const GeomAbs_Shape  Option,
const Standard_Real  AngularTolerance = 1.0e-4 
)
static

this method makes a wire whose edges are C1 from a Wire whose edges could be G1. It removes a vertex between G1 edges. Option can be G1 or C1.

◆ ConcatenateWireC0()

static TopoDS_Edge BRepAlgo::ConcatenateWireC0 ( const TopoDS_Wire Wire)
static

this method makes an edge from a wire. Junction points between edges of wire may be sharp, resulting curve of the resulting edge may be C0.

◆ ConvertFace()

static TopoDS_Face BRepAlgo::ConvertFace ( const TopoDS_Face theFace,
const Standard_Real  theAngleTolerance 
)
static

Method of face conversion. The API corresponds to the method ConvertWire. This is a shortcut for calling ConvertWire() for each wire in theFace.

◆ ConvertWire()

static TopoDS_Wire BRepAlgo::ConvertWire ( const TopoDS_Wire theWire,
const Standard_Real  theAngleTolerance,
const TopoDS_Face theFace 
)
static

Method of wire conversion, calls BRepAlgo_Approx internally.

Parameters
theWireInput Wire object.
theAngleToleranceAngle (in radians) defining the continuity of the wire: if two vectors differ by less than this angle, the result will be smooth (zero angle of tangent lines between curve elements).
Returns
The new TopoDS_Wire object consisting of edges each representing an arc of circle or a linear segment. The accuracy of conversion is defined as the maximal tolerance of edges in theWire.

◆ IsTopologicallyValid()

static Standard_Boolean BRepAlgo::IsTopologicallyValid ( const TopoDS_Shape S)
static

Checks if the shape is "correct". If not, returns FALSE, else returns TRUE. This method differs from the previous one in the fact that no geometric controls (intersection of wires, pcurve validity) are performed.

◆ IsValid() [1/2]

static Standard_Boolean BRepAlgo::IsValid ( const TopoDS_Shape S)
static

Checks if the shape is "correct". If not, returns <Standard_False>, else returns <Standard_True>.

◆ IsValid() [2/2]

static Standard_Boolean BRepAlgo::IsValid ( const TopTools_ListOfShape theArgs,
const TopoDS_Shape theResult,
const Standard_Boolean  closedSolid = Standard_False,
const Standard_Boolean  GeomCtrl = Standard_True 
)
static

Checks if the Generated and Modified Faces from the shapes <arguments> in the shape <result> are "correct". The args may be empty, then all faces will be checked. If <Closed> is True, only closed shape are valid. If <GeomCtrl> is False the geometry of new vertices and edges are not verified and the auto-intersection of new wires are not searched.


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