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

Computes the interference between two polygons or the self intersection of a polygon in two dimensions. More...

#include <Intf_InterferencePolygon2d.hxx>

Inheritance diagram for Intf_InterferencePolygon2d:
Inheritance graph
[legend]

Public Member Functions

 Intf_InterferencePolygon2d ()
 Constructs an empty interference of Polygon.
 
 Intf_InterferencePolygon2d (const Intf_Polygon2d &Obje1, const Intf_Polygon2d &Obje2)
 Constructs and computes an interference between two Polygons.
 
 Intf_InterferencePolygon2d (const Intf_Polygon2d &Obje)
 Constructs and computes the auto interference of a Polygon.
 
void Perform (const Intf_Polygon2d &Obje1, const Intf_Polygon2d &Obje2)
 Computes an interference between two Polygons.
 
void Perform (const Intf_Polygon2d &Obje)
 Computes the self interference of a Polygon.
 
gp_Pnt2d Pnt2dValue (const int Index) const
 Gives the geometrical 2d point of the intersection point at address <Index> in the interference.
 
- Public Member Functions inherited from Intf_Interference
int NbSectionPoints () const
 Gives the number of points of intersection in the interference.
 
const Intf_SectionPointPntValue (const int Index) const
 Gives the point of intersection of address Index in the interference.
 
int NbSectionLines () const
 Gives the number of polylines of intersection in the interference.
 
const Intf_SectionLineLineValue (const int Index) const
 Gives the polyline of intersection at address <Index> in the interference.
 
int NbTangentZones () const
 Gives the number of zones of tangence in the interference.
 
const Intf_TangentZoneZoneValue (const int Index) const
 Gives the zone of tangence at address Index in the interference.
 
double GetTolerance () const
 Gives the tolerance used for the calculation.
 
bool Contains (const Intf_SectionPoint &ThePnt) const
 Tests if the polylines of intersection or the zones of tangence contain the point of intersection <ThePnt>.
 
bool Insert (const Intf_TangentZone &TheZone)
 Inserts a new zone of tangence in the current list of tangent zones of the interference and returns True when done.
 
void Insert (const Intf_SectionPoint &pdeb, const Intf_SectionPoint &pfin)
 Insert a new segment of intersection in the current list of polylines of intersection of the interference.
 
void Dump () const
 

Additional Inherited Members

- Protected Member Functions inherited from Intf_Interference
 Intf_Interference (const bool Self)
 Empty constructor.
 
 ~Intf_Interference ()=default
 Destructor is protected, for safer inheritance.
 
void SelfInterference (const bool Self)
 Only one argument for the intersection.
 
- Protected Attributes inherited from Intf_Interference
NCollection_Sequence< Intf_SectionPointmySPoins
 
NCollection_Sequence< Intf_SectionLinemySLines
 
NCollection_Sequence< Intf_TangentZonemyTZones
 
bool SelfIntf
 
double Tolerance
 

Detailed Description

Computes the interference between two polygons or the self intersection of a polygon in two dimensions.

Constructor & Destructor Documentation

◆ Intf_InterferencePolygon2d() [1/3]

Intf_InterferencePolygon2d::Intf_InterferencePolygon2d ( )

Constructs an empty interference of Polygon.

◆ Intf_InterferencePolygon2d() [2/3]

Intf_InterferencePolygon2d::Intf_InterferencePolygon2d ( const Intf_Polygon2d & Obje1,
const Intf_Polygon2d & Obje2 )

Constructs and computes an interference between two Polygons.

◆ Intf_InterferencePolygon2d() [3/3]

Intf_InterferencePolygon2d::Intf_InterferencePolygon2d ( const Intf_Polygon2d & Obje)

Constructs and computes the auto interference of a Polygon.

Member Function Documentation

◆ Perform() [1/2]

void Intf_InterferencePolygon2d::Perform ( const Intf_Polygon2d & Obje)

Computes the self interference of a Polygon.

◆ Perform() [2/2]

void Intf_InterferencePolygon2d::Perform ( const Intf_Polygon2d & Obje1,
const Intf_Polygon2d & Obje2 )

Computes an interference between two Polygons.

◆ Pnt2dValue()

gp_Pnt2d Intf_InterferencePolygon2d::Pnt2dValue ( const int Index) const

Gives the geometrical 2d point of the intersection point at address <Index> in the interference.


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