Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter Class Reference

#include <HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter.hxx>

Inheritance diagram for HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter:

Public Member Functions

 HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter (const HLRBRep_CurvePtr &Curve, const int NbPnt, const IntRes2d_Domain &Domain, const double Tol)
 Compute a polygon on the domain of the curve.
void ComputeWithBox (const HLRBRep_CurvePtr &Curve, const Bnd_Box2d &OtherBox)
 The current polygon is modified if most of the points of the polygon are outside the box <OtherBox>. In this situation, bounds are computed to build a polygon inside or near the OtherBox.
double DeflectionOverEstimation () const override
 Returns the tolerance of the polygon.
void SetDeflectionOverEstimation (const double x)
void Closed (const bool clos)
bool Closed () const override
 Returns True if the polyline is closed.
int NbSegments () const override
 Give the number of Segments in the polyline.
void Segment (const int theIndex, gp_Pnt2d &theBegin, gp_Pnt2d &theEnd) const override
 Returns the points of the segment <Index> in the Polygon.
double InfParameter () const
 Returns the parameter (On the curve) of the first point of the Polygon.
double SupParameter () const
 Returns the parameter (On the curve) of the last point of the Polygon.
bool AutoIntersectionIsPossible () const
double ApproxParamOnCurve (const int Index, const double ParamOnLine) const
 Give an approximation of the parameter on the curve according to the discretization of the Curve.
int CalculRegion (const double x, const double y, const double x1, const double x2, const double y1, const double y2) const
void Dump () const
Public Member Functions inherited from Intf_Polygon2d
const Bnd_Box2d & Bounding () const
 Returns the bounding box of the polygon.
virtual ~Intf_Polygon2d ()=default

Additional Inherited Members

Protected Attributes inherited from Intf_Polygon2d
Bnd_Box2d myBox

Constructor & Destructor Documentation

◆ HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter()

HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter ( const HLRBRep_CurvePtr & Curve,
const int NbPnt,
const IntRes2d_Domain & Domain,
const double Tol )

Compute a polygon on the domain of the curve.

Member Function Documentation

◆ ApproxParamOnCurve()

double HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::ApproxParamOnCurve ( const int Index,
const double ParamOnLine ) const

Give an approximation of the parameter on the curve according to the discretization of the Curve.

◆ AutoIntersectionIsPossible()

bool HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::AutoIntersectionIsPossible ( ) const

◆ CalculRegion()

int HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::CalculRegion ( const double x,
const double y,
const double x1,
const double x2,
const double y1,
const double y2 ) const

◆ Closed() [1/2]

bool HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::Closed ( ) const
inlineoverridevirtual

Returns True if the polyline is closed.

Reimplemented from Intf_Polygon2d.

◆ Closed() [2/2]

void HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::Closed ( const bool clos)

◆ ComputeWithBox()

void HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::ComputeWithBox ( const HLRBRep_CurvePtr & Curve,
const Bnd_Box2d & OtherBox )

The current polygon is modified if most of the points of the polygon are outside the box <OtherBox>. In this situation, bounds are computed to build a polygon inside or near the OtherBox.

◆ DeflectionOverEstimation()

double HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::DeflectionOverEstimation ( ) const
overridevirtual

Returns the tolerance of the polygon.

Implements Intf_Polygon2d.

◆ Dump()

void HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::Dump ( ) const

◆ InfParameter()

double HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::InfParameter ( ) const

Returns the parameter (On the curve) of the first point of the Polygon.

◆ NbSegments()

int HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::NbSegments ( ) const
overridevirtual

Give the number of Segments in the polyline.

Implements Intf_Polygon2d.

◆ Segment()

void HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::Segment ( const int theIndex,
gp_Pnt2d & theBegin,
gp_Pnt2d & theEnd ) const
overridevirtual

Returns the points of the segment <Index> in the Polygon.

Implements Intf_Polygon2d.

◆ SetDeflectionOverEstimation()

void HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::SetDeflectionOverEstimation ( const double x)

◆ SupParameter()

double HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter::SupParameter ( ) const

Returns the parameter (On the curve) of the last point of the Polygon.


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