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

Auxiliary methods used in TopOpeBRepBuild_Builder1 class. More...

#include <TopOpeBRepBuild_Tools.hxx>

Static Public Member Functions

static void FindState (const TopoDS_Shape &aVertex, const TopAbs_State aState, const TopAbs_ShapeEnum aShapeEnum, const NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &aMapVertexEdges, NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > &aMapProcessedVertices, NCollection_DataMap< TopoDS_Shape, TopAbs_State, TopTools_ShapeMapHasher > &aMapVs)
 
static void PropagateState (const NCollection_DataMap< TopoDS_Shape, TopAbs_State, TopTools_ShapeMapHasher > &aSplEdgesState, const NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHasher > &anEdgesToRestMap, const TopAbs_ShapeEnum aShapeEnum1, const TopAbs_ShapeEnum aShapeEnum2, TopOpeBRepTool_ShapeClassifier &aShapeClassifier, NCollection_IndexedDataMap< TopoDS_Shape, TopOpeBRepDS_ShapeWithState, TopTools_ShapeMapHasher > &aMapOfShapeWithState, const NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > &anUnkStateShapes)
 
static TopAbs_State FindStateThroughVertex (const TopoDS_Shape &aShape, TopOpeBRepTool_ShapeClassifier &aShapeClassifier, NCollection_IndexedDataMap< TopoDS_Shape, TopOpeBRepDS_ShapeWithState, TopTools_ShapeMapHasher > &aMapOfShapeWithState, const NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > &anAvoidSubshMap)
 
static void PropagateStateForWires (const NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHasher > &aFacesToRestMap, NCollection_IndexedDataMap< TopoDS_Shape, TopOpeBRepDS_ShapeWithState, TopTools_ShapeMapHasher > &aMapOfShapeWithState)
 
static void SpreadStateToChild (const TopoDS_Shape &aShape, const TopAbs_State aState, NCollection_IndexedDataMap< TopoDS_Shape, TopOpeBRepDS_ShapeWithState, TopTools_ShapeMapHasher > &aMapOfShapeWithState)
 
static void FindState1 (const TopoDS_Shape &anEdge, const TopAbs_State aState, const NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &aMapEdgesFaces, NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > &aMapProcessedVertices, NCollection_DataMap< TopoDS_Shape, TopAbs_State, TopTools_ShapeMapHasher > &aMapVs)
 
static void FindState2 (const TopoDS_Shape &anEdge, const TopAbs_State aState, const NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &aMapEdgesFaces, NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > &aMapProcessedEdges, NCollection_DataMap< TopoDS_Shape, TopAbs_State, TopTools_ShapeMapHasher > &aMapVs)
 
static bool GetAdjacentFace (const TopoDS_Shape &aFaceObj, const TopoDS_Shape &anEObj, const NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &anEdgeFaceMap, TopoDS_Shape &anAdjFaceObj)
 
static void GetNormalToFaceOnEdge (const TopoDS_Face &aFObj, const TopoDS_Edge &anEdgeObj, gp_Vec &aDirNormal)
 
static void GetNormalInNearestPoint (const TopoDS_Face &aFace, const TopoDS_Edge &anEdge, gp_Vec &aNormal)
 This function used to compute normal in point which is located near the point with param UV (used for computation of normals where the normal in the point UV equal to zero).
 
static bool GetTangentToEdgeEdge (const TopoDS_Face &aFObj, const TopoDS_Edge &anEdgeObj, const TopoDS_Edge &aOriEObj, gp_Vec &aTangent)
 
static bool GetTangentToEdge (const TopoDS_Edge &anEdgeObj, gp_Vec &aTangent)
 
static void UpdatePCurves (const TopoDS_Wire &aWire, const TopoDS_Face &fromFace, const TopoDS_Face &toFace)
 Recompute PCurves of the all edges from the wire on the <toFace>
 
static void UpdateEdgeOnPeriodicalFace (const TopoDS_Edge &aEdgeToUpdate, const TopoDS_Face &OldFace, const TopoDS_Face &NewFace)
 Recompute PCurves of the closing (SIM, with 2 PCurves) edge on the NewFace.
 
static void UpdateEdgeOnFace (const TopoDS_Edge &aEdgeToUpdate, const TopoDS_Face &OldFace, const TopoDS_Face &NewFace)
 Recompute PCurve of the edge on the NewFace.
 
static bool IsDegEdgesTheSame (const TopoDS_Shape &anE1, const TopoDS_Shape &anE2)
 
static void NormalizeFace (const TopoDS_Shape &oldFace, TopoDS_Shape &corrFace)
 test if <oldFace> does not contain INTERNAL or EXTERNAL edges and remove such edges in case of its presence. The result is stored in <corrFace>
 
static void CorrectFace2d (const TopoDS_Shape &oldFace, TopoDS_Shape &corrFace, const NCollection_IndexedMap< TopoDS_Shape > &aSourceShapes, NCollection_IndexedDataMap< TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher > &aMapOfCorrect2dEdges)
 test if UV representation of <oldFace> is good (i.e. face is closed in 2d). if face is not closed, this method will try to close such face and will return corrected edges in the <aMapOfCorrect2dEdges>. Parameter <aSourceShapes> used to fix the edge (or wires) which should be correct (Corrector used it as a start shapes). NOTE: Parameter corrFace doesn't mean anything. If you want to use this method, rebuild resulting face after by yourself using corrected edges.
 
static void CorrectTolerances (const TopoDS_Shape &aS, const double aTolMax=0.0001)
 
static void CorrectCurveOnSurface (const TopoDS_Shape &aS, const double aTolMax=0.0001)
 
static void CorrectPointOnCurve (const TopoDS_Shape &aS, const double aTolMax=0.0001)
 
static bool CheckFaceClosed2d (const TopoDS_Face &theFace)
 Checks if <theFace> has the properly closed in 2D boundary(ies)
 

Detailed Description

Auxiliary methods used in TopOpeBRepBuild_Builder1 class.

Member Function Documentation

◆ CheckFaceClosed2d()

static bool TopOpeBRepBuild_Tools::CheckFaceClosed2d ( const TopoDS_Face & theFace)
static

Checks if <theFace> has the properly closed in 2D boundary(ies)

◆ CorrectCurveOnSurface()

static void TopOpeBRepBuild_Tools::CorrectCurveOnSurface ( const TopoDS_Shape & aS,
const double aTolMax = 0.0001 )
static

◆ CorrectFace2d()

static void TopOpeBRepBuild_Tools::CorrectFace2d ( const TopoDS_Shape & oldFace,
TopoDS_Shape & corrFace,
const NCollection_IndexedMap< TopoDS_Shape > & aSourceShapes,
NCollection_IndexedDataMap< TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher > & aMapOfCorrect2dEdges )
static

test if UV representation of <oldFace> is good (i.e. face is closed in 2d). if face is not closed, this method will try to close such face and will return corrected edges in the <aMapOfCorrect2dEdges>. Parameter <aSourceShapes> used to fix the edge (or wires) which should be correct (Corrector used it as a start shapes). NOTE: Parameter corrFace doesn't mean anything. If you want to use this method, rebuild resulting face after by yourself using corrected edges.

◆ CorrectPointOnCurve()

static void TopOpeBRepBuild_Tools::CorrectPointOnCurve ( const TopoDS_Shape & aS,
const double aTolMax = 0.0001 )
static

◆ CorrectTolerances()

static void TopOpeBRepBuild_Tools::CorrectTolerances ( const TopoDS_Shape & aS,
const double aTolMax = 0.0001 )
static

◆ FindState()

static void TopOpeBRepBuild_Tools::FindState ( const TopoDS_Shape & aVertex,
const TopAbs_State aState,
const TopAbs_ShapeEnum aShapeEnum,
const NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > & aMapVertexEdges,
NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > & aMapProcessedVertices,
NCollection_DataMap< TopoDS_Shape, TopAbs_State, TopTools_ShapeMapHasher > & aMapVs )
static

◆ FindState1()

static void TopOpeBRepBuild_Tools::FindState1 ( const TopoDS_Shape & anEdge,
const TopAbs_State aState,
const NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > & aMapEdgesFaces,
NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > & aMapProcessedVertices,
NCollection_DataMap< TopoDS_Shape, TopAbs_State, TopTools_ShapeMapHasher > & aMapVs )
static

◆ FindState2()

static void TopOpeBRepBuild_Tools::FindState2 ( const TopoDS_Shape & anEdge,
const TopAbs_State aState,
const NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > & aMapEdgesFaces,
NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > & aMapProcessedEdges,
NCollection_DataMap< TopoDS_Shape, TopAbs_State, TopTools_ShapeMapHasher > & aMapVs )
static

◆ FindStateThroughVertex()

static TopAbs_State TopOpeBRepBuild_Tools::FindStateThroughVertex ( const TopoDS_Shape & aShape,
TopOpeBRepTool_ShapeClassifier & aShapeClassifier,
NCollection_IndexedDataMap< TopoDS_Shape, TopOpeBRepDS_ShapeWithState, TopTools_ShapeMapHasher > & aMapOfShapeWithState,
const NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > & anAvoidSubshMap )
static

◆ GetAdjacentFace()

static bool TopOpeBRepBuild_Tools::GetAdjacentFace ( const TopoDS_Shape & aFaceObj,
const TopoDS_Shape & anEObj,
const NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > & anEdgeFaceMap,
TopoDS_Shape & anAdjFaceObj )
static

◆ GetNormalInNearestPoint()

static void TopOpeBRepBuild_Tools::GetNormalInNearestPoint ( const TopoDS_Face & aFace,
const TopoDS_Edge & anEdge,
gp_Vec & aNormal )
static

This function used to compute normal in point which is located near the point with param UV (used for computation of normals where the normal in the point UV equal to zero).

◆ GetNormalToFaceOnEdge()

static void TopOpeBRepBuild_Tools::GetNormalToFaceOnEdge ( const TopoDS_Face & aFObj,
const TopoDS_Edge & anEdgeObj,
gp_Vec & aDirNormal )
static

◆ GetTangentToEdge()

static bool TopOpeBRepBuild_Tools::GetTangentToEdge ( const TopoDS_Edge & anEdgeObj,
gp_Vec & aTangent )
static

◆ GetTangentToEdgeEdge()

static bool TopOpeBRepBuild_Tools::GetTangentToEdgeEdge ( const TopoDS_Face & aFObj,
const TopoDS_Edge & anEdgeObj,
const TopoDS_Edge & aOriEObj,
gp_Vec & aTangent )
static

◆ IsDegEdgesTheSame()

static bool TopOpeBRepBuild_Tools::IsDegEdgesTheSame ( const TopoDS_Shape & anE1,
const TopoDS_Shape & anE2 )
static

◆ NormalizeFace()

static void TopOpeBRepBuild_Tools::NormalizeFace ( const TopoDS_Shape & oldFace,
TopoDS_Shape & corrFace )
static

test if <oldFace> does not contain INTERNAL or EXTERNAL edges and remove such edges in case of its presence. The result is stored in <corrFace>

◆ PropagateState()

static void TopOpeBRepBuild_Tools::PropagateState ( const NCollection_DataMap< TopoDS_Shape, TopAbs_State, TopTools_ShapeMapHasher > & aSplEdgesState,
const NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHasher > & anEdgesToRestMap,
const TopAbs_ShapeEnum aShapeEnum1,
const TopAbs_ShapeEnum aShapeEnum2,
TopOpeBRepTool_ShapeClassifier & aShapeClassifier,
NCollection_IndexedDataMap< TopoDS_Shape, TopOpeBRepDS_ShapeWithState, TopTools_ShapeMapHasher > & aMapOfShapeWithState,
const NCollection_Map< TopoDS_Shape, TopTools_ShapeMapHasher > & anUnkStateShapes )
static

◆ PropagateStateForWires()

static void TopOpeBRepBuild_Tools::PropagateStateForWires ( const NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHasher > & aFacesToRestMap,
NCollection_IndexedDataMap< TopoDS_Shape, TopOpeBRepDS_ShapeWithState, TopTools_ShapeMapHasher > & aMapOfShapeWithState )
static

◆ SpreadStateToChild()

static void TopOpeBRepBuild_Tools::SpreadStateToChild ( const TopoDS_Shape & aShape,
const TopAbs_State aState,
NCollection_IndexedDataMap< TopoDS_Shape, TopOpeBRepDS_ShapeWithState, TopTools_ShapeMapHasher > & aMapOfShapeWithState )
static

◆ UpdateEdgeOnFace()

static void TopOpeBRepBuild_Tools::UpdateEdgeOnFace ( const TopoDS_Edge & aEdgeToUpdate,
const TopoDS_Face & OldFace,
const TopoDS_Face & NewFace )
static

Recompute PCurve of the edge on the NewFace.

◆ UpdateEdgeOnPeriodicalFace()

static void TopOpeBRepBuild_Tools::UpdateEdgeOnPeriodicalFace ( const TopoDS_Edge & aEdgeToUpdate,
const TopoDS_Face & OldFace,
const TopoDS_Face & NewFace )
static

Recompute PCurves of the closing (SIM, with 2 PCurves) edge on the NewFace.

◆ UpdatePCurves()

static void TopOpeBRepBuild_Tools::UpdatePCurves ( const TopoDS_Wire & aWire,
const TopoDS_Face & fromFace,
const TopoDS_Face & toFace )
static

Recompute PCurves of the all edges from the wire on the <toFace>


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