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

Intersect two shapes. More...

#include <TopOpeBRep_ShapeIntersector.hxx>

Public Member Functions

 TopOpeBRep_ShapeIntersector ()
 
void InitIntersection (const TopoDS_Shape &S1, const TopoDS_Shape &S2)
 Initialize the intersection of shapes S1,S2.
 
void InitIntersection (const TopoDS_Shape &S1, const TopoDS_Shape &S2, const TopoDS_Face &F1, const TopoDS_Face &F2)
 Initialize the intersection of shapes S1,S2.
 
const TopoDS_ShapeShape (const int Index) const
 return the shape <Index> ( = 1 or 2) given to InitIntersection(). Index = 1 will return S1, Index = 2 will return S2.
 
bool MoreIntersection () const
 returns True if there are more intersection between two the shapes.
 
void NextIntersection ()
 search for the next intersection between the two shapes.
 
TopOpeBRep_FacesIntersectorChangeFacesIntersector ()
 return the current intersection of two Faces.
 
TopOpeBRep_EdgesIntersectorChangeEdgesIntersector ()
 return the current intersection of two Edges.
 
TopOpeBRep_FaceEdgeIntersectorChangeFaceEdgeIntersector ()
 return the current intersection of a Face and an Edge.
 
const TopoDS_ShapeCurrentGeomShape (const int Index) const
 return geometric shape <Index> ( = 1 or 2 ) of current intersection.
 
void GetTolerances (double &tol1, double &tol2) const
 return MAX of intersection tolerances with which FacesIntersector from TopOpeBRep was working.
 
void DumpCurrent (const int K) const
 
int Index (const int K) const
 
void RejectedFaces (const TopoDS_Shape &anObj, const TopoDS_Shape &aReference, NCollection_List< TopoDS_Shape > &aListOfShape)
 

Detailed Description

Intersect two shapes.

A GeomShape is a shape with a geometric domain, i.e. a Face or an Edge.

The purpose of the ShapeIntersector is to find couples of intersecting GeomShape in two Shapes (which can be any kind of topologies : Compound, Solid, Shell, etc... )

It is in charge of exploration of the shapes and rejection. For this it is provided with two tools:

Let S1,S2 the shapes sent to InitIntersection(S1,S2) method:

Constructor & Destructor Documentation

◆ TopOpeBRep_ShapeIntersector()

TopOpeBRep_ShapeIntersector::TopOpeBRep_ShapeIntersector ( )

Member Function Documentation

◆ ChangeEdgesIntersector()

TopOpeBRep_EdgesIntersector & TopOpeBRep_ShapeIntersector::ChangeEdgesIntersector ( )

return the current intersection of two Edges.

◆ ChangeFaceEdgeIntersector()

TopOpeBRep_FaceEdgeIntersector & TopOpeBRep_ShapeIntersector::ChangeFaceEdgeIntersector ( )

return the current intersection of a Face and an Edge.

◆ ChangeFacesIntersector()

TopOpeBRep_FacesIntersector & TopOpeBRep_ShapeIntersector::ChangeFacesIntersector ( )

return the current intersection of two Faces.

◆ CurrentGeomShape()

const TopoDS_Shape & TopOpeBRep_ShapeIntersector::CurrentGeomShape ( const int Index) const

return geometric shape <Index> ( = 1 or 2 ) of current intersection.

◆ DumpCurrent()

void TopOpeBRep_ShapeIntersector::DumpCurrent ( const int K) const

◆ GetTolerances()

void TopOpeBRep_ShapeIntersector::GetTolerances ( double & tol1,
double & tol2 ) const

return MAX of intersection tolerances with which FacesIntersector from TopOpeBRep was working.

◆ Index()

int TopOpeBRep_ShapeIntersector::Index ( const int K) const

◆ InitIntersection() [1/2]

void TopOpeBRep_ShapeIntersector::InitIntersection ( const TopoDS_Shape & S1,
const TopoDS_Shape & S2 )

Initialize the intersection of shapes S1,S2.

◆ InitIntersection() [2/2]

void TopOpeBRep_ShapeIntersector::InitIntersection ( const TopoDS_Shape & S1,
const TopoDS_Shape & S2,
const TopoDS_Face & F1,
const TopoDS_Face & F2 )

Initialize the intersection of shapes S1,S2.

◆ MoreIntersection()

bool TopOpeBRep_ShapeIntersector::MoreIntersection ( ) const

returns True if there are more intersection between two the shapes.

◆ NextIntersection()

void TopOpeBRep_ShapeIntersector::NextIntersection ( )

search for the next intersection between the two shapes.

◆ RejectedFaces()

void TopOpeBRep_ShapeIntersector::RejectedFaces ( const TopoDS_Shape & anObj,
const TopoDS_Shape & aReference,
NCollection_List< TopoDS_Shape > & aListOfShape )

◆ Shape()

const TopoDS_Shape & TopOpeBRep_ShapeIntersector::Shape ( const int Index) const

return the shape <Index> ( = 1 or 2) given to InitIntersection(). Index = 1 will return S1, Index = 2 will return S2.


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