Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
TopOpeBRepTool Class Reference

This package provides services used by the TopOpeBRep package performing topological operations on the BRep data structure. More...

#include <TopOpeBRepTool.hxx>

Static Public Member Functions

static bool PurgeClosingEdges (const TopoDS_Face &F, const TopoDS_Face &FF, const NCollection_DataMap< TopoDS_Shape, int, TopTools_ShapeMapHasher > &MWisOld, NCollection_IndexedMap< TopoDS_Shape > &MshNOK)
 Fuse edges (in a wire) of a shape where we have useless vertex. In case face <FF> is built on UV-non-connexed wires (with the two closing edges FORWARD and REVERSED, in spite of one only), we find out the faulty edge, add the faulty shapes (edge,wire,face) to <MshNOK>. <FF> is a face descendant of <F>. <MWisOld>(wire) = 1 if wire is wire of <F> 0 wire results from <F>'s wire split. returns false if purge fails.
 
static bool PurgeClosingEdges (const TopoDS_Face &F, const NCollection_List< TopoDS_Shape > &LOF, const NCollection_DataMap< TopoDS_Shape, int, TopTools_ShapeMapHasher > &MWisOld, NCollection_IndexedMap< TopoDS_Shape > &MshNOK)
 
static bool CorrectONUVISO (const TopoDS_Face &F, TopoDS_Face &Fsp)
 
static bool MakeFaces (const TopoDS_Face &F, const NCollection_List< TopoDS_Shape > &LOF, const NCollection_IndexedMap< TopoDS_Shape > &MshNOK, NCollection_List< TopoDS_Shape > &LOFF)
 Builds up the correct list of faces <LOFF> from <LOF>, using faulty shapes from map <MshNOK>. <LOF> is the list of <F>'s descendant faces. returns false if building fails.
 
static bool Regularize (const TopoDS_Face &aFace, NCollection_List< TopoDS_Shape > &aListOfFaces, NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &ESplits)
 Returns <False> if the face is valid (the UV representation of the face is a set of pcurves connexed by points with connexity 2). Else, splits <aFace> in order to return a list of valid faces.
 
static bool RegularizeWires (const TopoDS_Face &aFace, NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &OldWiresNewWires, NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &ESplits)
 Returns <False> if the face is valid (the UV representation of the face is a set of pcurves connexed by points with connexity 2). Else, splits wires of the face, these are boundaries of the new faces to build up; <OldWiresNewWires> describes (wire, splits of wire); <ESplits> describes (edge, edge's splits)
 
static bool RegularizeFace (const TopoDS_Face &aFace, const NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &OldWiresnewWires, NCollection_List< TopoDS_Shape > &aListOfFaces)
 Classify wire's splits of map <OldWiresnewWires> in order to compute <aListOfFaces>, the splits of <aFace>.
 
static bool RegularizeShells (const TopoDS_Solid &aSolid, NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &OldSheNewShe, NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &FSplits)
 Returns <False> if the shell is valid (the solid is a set of faces connexed by edges with connexity 2). Else, splits faces of the shell; <OldFacesnewFaces> describes (face, splits of face).
 
static Standard_OStreamPrint (const TopOpeBRepTool_OutCurveType OCT, Standard_OStream &S)
 Prints <OCT> as string on stream ; returns .
 

Detailed Description

This package provides services used by the TopOpeBRep package performing topological operations on the BRep data structure.

Member Function Documentation

◆ CorrectONUVISO()

static bool TopOpeBRepTool::CorrectONUVISO ( const TopoDS_Face & F,
TopoDS_Face & Fsp )
static

◆ MakeFaces()

static bool TopOpeBRepTool::MakeFaces ( const TopoDS_Face & F,
const NCollection_List< TopoDS_Shape > & LOF,
const NCollection_IndexedMap< TopoDS_Shape > & MshNOK,
NCollection_List< TopoDS_Shape > & LOFF )
static

Builds up the correct list of faces <LOFF> from <LOF>, using faulty shapes from map <MshNOK>. <LOF> is the list of <F>'s descendant faces. returns false if building fails.

◆ Print()

static Standard_OStream & TopOpeBRepTool::Print ( const TopOpeBRepTool_OutCurveType OCT,
Standard_OStream & S )
static

Prints <OCT> as string on stream ; returns .

◆ PurgeClosingEdges() [1/2]

static bool TopOpeBRepTool::PurgeClosingEdges ( const TopoDS_Face & F,
const NCollection_List< TopoDS_Shape > & LOF,
const NCollection_DataMap< TopoDS_Shape, int, TopTools_ShapeMapHasher > & MWisOld,
NCollection_IndexedMap< TopoDS_Shape > & MshNOK )
static

◆ PurgeClosingEdges() [2/2]

static bool TopOpeBRepTool::PurgeClosingEdges ( const TopoDS_Face & F,
const TopoDS_Face & FF,
const NCollection_DataMap< TopoDS_Shape, int, TopTools_ShapeMapHasher > & MWisOld,
NCollection_IndexedMap< TopoDS_Shape > & MshNOK )
static

Fuse edges (in a wire) of a shape where we have useless vertex. In case face <FF> is built on UV-non-connexed wires (with the two closing edges FORWARD and REVERSED, in spite of one only), we find out the faulty edge, add the faulty shapes (edge,wire,face) to <MshNOK>. <FF> is a face descendant of <F>. <MWisOld>(wire) = 1 if wire is wire of <F> 0 wire results from <F>'s wire split. returns false if purge fails.

◆ Regularize()

static bool TopOpeBRepTool::Regularize ( const TopoDS_Face & aFace,
NCollection_List< TopoDS_Shape > & aListOfFaces,
NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > & ESplits )
static

Returns <False> if the face is valid (the UV representation of the face is a set of pcurves connexed by points with connexity 2). Else, splits <aFace> in order to return a list of valid faces.

◆ RegularizeFace()

static bool TopOpeBRepTool::RegularizeFace ( const TopoDS_Face & aFace,
const NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > & OldWiresnewWires,
NCollection_List< TopoDS_Shape > & aListOfFaces )
static

Classify wire's splits of map <OldWiresnewWires> in order to compute <aListOfFaces>, the splits of <aFace>.

◆ RegularizeShells()

Returns <False> if the shell is valid (the solid is a set of faces connexed by edges with connexity 2). Else, splits faces of the shell; <OldFacesnewFaces> describes (face, splits of face).

◆ RegularizeWires()

Returns <False> if the face is valid (the UV representation of the face is a set of pcurves connexed by points with connexity 2). Else, splits wires of the face, these are boundaries of the new faces to build up; <OldWiresNewWires> describes (wire, splits of wire); <ESplits> describes (edge, edge's splits)


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