#include <GEOMImpl_Block6Explorer.hxx>
Public Member Functions | |
GEOMImpl_Block6Explorer () | |
void | InitByBlock (const TopoDS_Shape &theBlock) |
void | InitByBlockAndFace (const TopoDS_Shape &theBlock, const TopoDS_Shape &theFace) |
void | InitByBlockAndEdges (const TopoDS_Shape &theBlock, const TopoDS_Shape &theEdge1, const TopoDS_Shape &theEdge2) |
void | InitByBlockAndVertices (const TopoDS_Shape &theBlock, const TopoDS_Shape &theVertex1, const TopoDS_Shape &theVertex2, const TopoDS_Shape &theVertex3) |
void | InitByTwoFaces (const TopoDS_Shape &theFace1, const TopoDS_Shape &theFace2) |
TopoDS_Shape | GetVertex (const Standard_Integer theVertexID) |
Standard_Integer | GetVertexID (const TopoDS_Shape &theVertex) |
Standard_Integer | GetVertexID (const Standard_Integer theFaceID, const Standard_Integer theVertexNB) |
Standard_Integer | GetVertexOnEdgeID (const Standard_Integer theEdgeID, const Standard_Integer theVertexNB) |
TopoDS_Shape | GetEdge (const Standard_Integer theEdgeID, const Standard_Boolean doMake=Standard_False) |
Standard_Integer | GetEdgeID (const TopoDS_Shape &theEdge) |
Standard_Integer | GetEdgeID (const Standard_Integer theFaceID, const Standard_Integer theEdgeNB) |
Standard_Integer | FindEdgeID (const Standard_Integer theVertex1ID, const Standard_Integer theVertex2ID) |
Standard_Integer | FindCommonEdgeID (const Standard_Integer theFace1ID, const Standard_Integer theFace2ID) |
TopoDS_Shape | GetFace (const Standard_Integer theFaceID, const Standard_Boolean doMake=Standard_False) |
Standard_Integer | GetFaceID (const TopoDS_Shape &theFace) |
Standard_Integer | FindFaceID (const Standard_Integer theEdge1ID, const Standard_Integer theEdge2ID) |
Standard_Integer | GetOppositeFaceID (const Standard_Integer theFaceID) |
Standard_Boolean | IsSimilarFaces (const Standard_Integer theFace1ID, const Standard_Integer theFace2ID, const gp_Trsf theTransformation) |
Static Public Member Functions | |
static void | MapShapesAndAncestors (const TopoDS_Shape &S, const TopAbs_ShapeEnum TS, const TopAbs_ShapeEnum TA, TopTools_IndexedDataMapOfShapeListOfShape &M) |
static Standard_Boolean | IsSimilarEdges (const TopoDS_Shape &E1, const TopoDS_Shape &E2) |
static Standard_Integer | FindEdge (TopoDS_Shape &theResult, const TopoDS_Shape &V1, const TopoDS_Shape &V2, const TopTools_IndexedDataMapOfShapeListOfShape &MVE, const Standard_Boolean findAll=Standard_False) |
static Standard_Integer | FindFace (TopoDS_Shape &theResult, const TopoDS_Shape &V1, const TopoDS_Shape &V2, const TopoDS_Shape &V3, const TopoDS_Shape &V4, const TopTools_IndexedDataMapOfShapeListOfShape &MVF, const Standard_Boolean findAll=Standard_False) |
static TCollection_AsciiString | MakeFace (const TopoDS_Wire &theWire, const Standard_Boolean isPlanarWanted, TopoDS_Shape &theResult) |
static TCollection_AsciiString | MakeAnyFace (const TopoDS_Wire &theWire, TopoDS_Shape &theResult) |
Private Attributes | |
TopTools_Array1OfShape | myFaces |
TopTools_Array1OfShape | myEdges |
TopTools_Array1OfShape | myVertices |
GEOMImpl_Block6Explorer::GEOMImpl_Block6Explorer | ( | ) |
Standard_Integer GEOMImpl_Block6Explorer::FindCommonEdgeID | ( | const Standard_Integer | theFace1ID, |
const Standard_Integer | theFace2ID | ||
) |
References edge_id_faces().
|
static |
Standard_Integer GEOMImpl_Block6Explorer::FindEdgeID | ( | const Standard_Integer | theVertex1ID, |
const Standard_Integer | theVertex2ID | ||
) |
References edge_id_vertices().
|
static |
Standard_Integer GEOMImpl_Block6Explorer::FindFaceID | ( | const Standard_Integer | theEdge1ID, |
const Standard_Integer | theEdge2ID | ||
) |
References face_id_edges().
TopoDS_Shape GEOMImpl_Block6Explorer::GetEdge | ( | const Standard_Integer | theEdgeID, |
const Standard_Boolean | doMake = Standard_False |
||
) |
References myEdges, myVertices, NBEDGES, and vertex_id_edge().
Standard_Integer GEOMImpl_Block6Explorer::GetEdgeID | ( | const TopoDS_Shape & | theEdge | ) |
Standard_Integer GEOMImpl_Block6Explorer::GetEdgeID | ( | const Standard_Integer | theFaceID, |
const Standard_Integer | theEdgeNB | ||
) |
References edge_id().
TopoDS_Shape GEOMImpl_Block6Explorer::GetFace | ( | const Standard_Integer | theFaceID, |
const Standard_Boolean | doMake = Standard_False |
||
) |
References edge_id(), GetEdge(), MakeFace(), myFaces, and NBFACES.
Standard_Integer GEOMImpl_Block6Explorer::GetFaceID | ( | const TopoDS_Shape & | theFace | ) |
Standard_Integer GEOMImpl_Block6Explorer::GetOppositeFaceID | ( | const Standard_Integer | theFaceID | ) |
References NBFACES.
TopoDS_Shape GEOMImpl_Block6Explorer::GetVertex | ( | const Standard_Integer | theVertexID | ) |
References myVertices, and NBVERTS.
Standard_Integer GEOMImpl_Block6Explorer::GetVertexID | ( | const TopoDS_Shape & | theVertex | ) |
References myVertices, and NBVERTS.
Standard_Integer GEOMImpl_Block6Explorer::GetVertexID | ( | const Standard_Integer | theFaceID, |
const Standard_Integer | theVertexNB | ||
) |
References vertex_id().
Standard_Integer GEOMImpl_Block6Explorer::GetVertexOnEdgeID | ( | const Standard_Integer | theEdgeID, |
const Standard_Integer | theVertexNB | ||
) |
References vertex_id_edge().
void GEOMImpl_Block6Explorer::InitByBlock | ( | const TopoDS_Shape & | theBlock | ) |
References InitByBlockAndFace().
void GEOMImpl_Block6Explorer::InitByBlockAndEdges | ( | const TopoDS_Shape & | theBlock, |
const TopoDS_Shape & | theEdge1, | ||
const TopoDS_Shape & | theEdge2 | ||
) |
References edge_id(), InitByBlockAndVertices(), MapShapesAndAncestors(), myEdges, myFaces, myVertices, NBEDGES, vertex_id(), and GEOM::Vertices.
void GEOMImpl_Block6Explorer::InitByBlockAndFace | ( | const TopoDS_Shape & | theBlock, |
const TopoDS_Shape & | theFace | ||
) |
References edge_id(), InitByBlockAndVertices(), myEdges, myFaces, myVertices, and vertex_id().
void GEOMImpl_Block6Explorer::InitByBlockAndVertices | ( | const TopoDS_Shape & | theBlock, |
const TopoDS_Shape & | theVertex1, | ||
const TopoDS_Shape & | theVertex2, | ||
const TopoDS_Shape & | theVertex3 | ||
) |
References edge_id(), MapShapesAndAncestors(), mod4(), myEdges, myFaces, myVertices, NBEDGES, NBFACES, NBVERTS, side_edge_id(), vertex_id(), and GEOM::Vertices.
void GEOMImpl_Block6Explorer::InitByTwoFaces | ( | const TopoDS_Shape & | theFace1, |
const TopoDS_Shape & | theFace2 | ||
) |
References edge_id(), FindEdge(), GetEdge(), GetFace(), MapShapesAndAncestors(), mod4(), myEdges, myFaces, myVertices, side_edge_id(), vertex_id(), vertex_id_edge(), and GEOM::Vertices.
|
static |
References GEOM::Vertices.
Standard_Boolean GEOMImpl_Block6Explorer::IsSimilarFaces | ( | const Standard_Integer | theFace1ID, |
const Standard_Integer | theFace2ID, | ||
const gp_Trsf | theTransformation | ||
) |
References edge_id(), FindCommonEdgeID(), FindEdgeID(), GetEdge(), GetVertexID(), GetVertexOnEdgeID(), IsSimilarEdges(), and myVertices.
|
static |
Build a face, bound by the given wire.
theWire | The initial wire to build the face on. |
theResult | The resulting shape. |
References anEdge, aTol, Handle(), ShHealOper_ShapeProcess::isDone(), and ShHealOper_ShapeProcess::Perform().
|
static |
Build a face, bound by the given wire.
theWire | The initial wire to build the face on. |
isPlanarWanted | If true, try to build a planar face. |
theResult | The resulting shape. |
References aTol, MakeAnyFace(), and PLANAR_FACE_MAX_TOLERANCE.
|
static |
|
private |
|
private |
|
private |