Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions
IntPatch_ALineToWLine Class Reference

#include <IntPatch_ALineToWLine.hxx>

Public Member Functions

 IntPatch_ALineToWLine (const occ::handle< Adaptor3d_Surface > &theS1, const occ::handle< Adaptor3d_Surface > &theS2, const int theNbPoints=200)
 Constructor.
 
void SetTolOpenDomain (const double aT)
 
double TolOpenDomain () const
 
void SetTolTransition (const double aT)
 
double TolTransition () const
 
void SetTol3D (const double aT)
 
double Tol3D () const
 
void MakeWLine (const occ::handle< IntPatch_ALine > &aline, NCollection_Sequence< occ::handle< IntPatch_Line > > &theLines) const
 Converts aline to the set of Walking-lines and adds them in theLines.
 
void MakeWLine (const occ::handle< IntPatch_ALine > &aline, const double paraminf, const double paramsup, NCollection_Sequence< occ::handle< IntPatch_Line > > &theLines) const
 Converts aline (limited by paraminf and paramsup) to the set of Walking-lines and adds them in theLines.
 

Protected Member Functions

bool StepComputing (const occ::handle< IntPatch_ALine > &theALine, const IntSurf_PntOn2S &thePOn2S, const double theLastParOfAline, const double theCurParam, const double theTgMagnitude, const double theStepMin, const double theStepMax, const double theMaxDeflection, double &theStep) const
 Computes step value to construct point-line. The step depends on the local curvature of the intersection line computed in thePOn2S. theTgMagnitude is the magnitude of tangent vector to the intersection line (in the point thePOn2S). Computed step is always in the range [theStepMin, theStepMax]. Returns FALSE if the step cannot be computed. In this case, its value will not be changed.
 
int CheckDeflection (const gp_XYZ &theMidPt, const double theMaxDeflection) const
 Compares distances from theMidPt to every quadrics with theMaxDeflection (maximal distance of two ones is taken into account). Returns the result of this comparison: -1 - small distance, +1 - big distance, 0 - Dist == theMaxDeflection. Comparisons are done with internal tolerances.
 
double GetSectionRadius (const gp_Pnt &thePnt3d) const
 Returns radius of a circle obtained by intersection the quadric with a plane goes through thePnt3d perpendicular to the quadric axis. This radius is computed for both quadrics and minimal value is returned. This check is made for cone and sphere only.
 
void CorrectEndPoint (occ::handle< IntSurf_LineOn2S > &theLine, const int theIndex) const
 Corrects the U-parameter of an end point (first or last) of the line if this end point is a pole. The line must contain at least 3 points. This is made for cone and sphere only.
 

Constructor & Destructor Documentation

◆ IntPatch_ALineToWLine()

IntPatch_ALineToWLine::IntPatch_ALineToWLine ( const occ::handle< Adaptor3d_Surface > & theS1,
const occ::handle< Adaptor3d_Surface > & theS2,
const int theNbPoints = 200 )

Constructor.

Member Function Documentation

◆ CheckDeflection()

int IntPatch_ALineToWLine::CheckDeflection ( const gp_XYZ & theMidPt,
const double theMaxDeflection ) const
protected

Compares distances from theMidPt to every quadrics with theMaxDeflection (maximal distance of two ones is taken into account). Returns the result of this comparison: -1 - small distance, +1 - big distance, 0 - Dist == theMaxDeflection. Comparisons are done with internal tolerances.

◆ CorrectEndPoint()

void IntPatch_ALineToWLine::CorrectEndPoint ( occ::handle< IntSurf_LineOn2S > & theLine,
const int theIndex ) const
protected

Corrects the U-parameter of an end point (first or last) of the line if this end point is a pole. The line must contain at least 3 points. This is made for cone and sphere only.

◆ GetSectionRadius()

double IntPatch_ALineToWLine::GetSectionRadius ( const gp_Pnt & thePnt3d) const
protected

Returns radius of a circle obtained by intersection the quadric with a plane goes through thePnt3d perpendicular to the quadric axis. This radius is computed for both quadrics and minimal value is returned. This check is made for cone and sphere only.

◆ MakeWLine() [1/2]

void IntPatch_ALineToWLine::MakeWLine ( const occ::handle< IntPatch_ALine > & aline,
const double paraminf,
const double paramsup,
NCollection_Sequence< occ::handle< IntPatch_Line > > & theLines ) const

Converts aline (limited by paraminf and paramsup) to the set of Walking-lines and adds them in theLines.

◆ MakeWLine() [2/2]

void IntPatch_ALineToWLine::MakeWLine ( const occ::handle< IntPatch_ALine > & aline,
NCollection_Sequence< occ::handle< IntPatch_Line > > & theLines ) const

Converts aline to the set of Walking-lines and adds them in theLines.

◆ SetTol3D()

void IntPatch_ALineToWLine::SetTol3D ( const double aT)

◆ SetTolOpenDomain()

void IntPatch_ALineToWLine::SetTolOpenDomain ( const double aT)

◆ SetTolTransition()

void IntPatch_ALineToWLine::SetTolTransition ( const double aT)

◆ StepComputing()

bool IntPatch_ALineToWLine::StepComputing ( const occ::handle< IntPatch_ALine > & theALine,
const IntSurf_PntOn2S & thePOn2S,
const double theLastParOfAline,
const double theCurParam,
const double theTgMagnitude,
const double theStepMin,
const double theStepMax,
const double theMaxDeflection,
double & theStep ) const
protected

Computes step value to construct point-line. The step depends on the local curvature of the intersection line computed in thePOn2S. theTgMagnitude is the magnitude of tangent vector to the intersection line (in the point thePOn2S). Computed step is always in the range [theStepMin, theStepMax]. Returns FALSE if the step cannot be computed. In this case, its value will not be changed.

◆ Tol3D()

double IntPatch_ALineToWLine::Tol3D ( ) const

◆ TolOpenDomain()

double IntPatch_ALineToWLine::TolOpenDomain ( ) const

◆ TolTransition()

double IntPatch_ALineToWLine::TolTransition ( ) const

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