Open CASCADE Technology  7.4.0
Public Member Functions | Protected Member Functions
IntPatch_ALineToWLine Class Reference

#include <IntPatch_ALineToWLine.hxx>

Public Member Functions

 IntPatch_ALineToWLine (const Handle< Adaptor3d_HSurface > &theS1, const Handle< Adaptor3d_HSurface > &theS2, const Standard_Integer theNbPoints=200)
 Constructor. More...
 
void SetTolOpenDomain (const Standard_Real aT)
 
Standard_Real TolOpenDomain () const
 
void SetTolTransition (const Standard_Real aT)
 
Standard_Real TolTransition () const
 
void SetTol3D (const Standard_Real aT)
 
Standard_Real Tol3D () const
 
void MakeWLine (const Handle< IntPatch_ALine > &aline, IntPatch_SequenceOfLine &theLines) const
 Converts aline to the set of Walking-lines and adds them in theLines. More...
 
void MakeWLine (const Handle< IntPatch_ALine > &aline, const Standard_Real paraminf, const Standard_Real paramsup, IntPatch_SequenceOfLine &theLines) const
 Converts aline (limitted by paraminf and paramsup) to the set of Walking-lines and adds them in theLines. More...
 

Protected Member Functions

Standard_Boolean StepComputing (const Handle< IntPatch_ALine > &theALine, const IntSurf_PntOn2S &thePOn2S, const Standard_Real theLastParOfAline, const Standard_Real theCurParam, const Standard_Real theTgMagnitude, const Standard_Real theStepMin, const Standard_Real theStepMax, const Standard_Real theMaxDeflection, Standard_Real &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. More...
 
Standard_Integer CheckDeflection (const gp_XYZ &theMidPt, const Standard_Real 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. More...
 
Standard_Real 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. More...
 

Constructor & Destructor Documentation

◆ IntPatch_ALineToWLine()

IntPatch_ALineToWLine::IntPatch_ALineToWLine ( const Handle< Adaptor3d_HSurface > &  theS1,
const Handle< Adaptor3d_HSurface > &  theS2,
const Standard_Integer  theNbPoints = 200 
)

Constructor.

Member Function Documentation

◆ CheckDeflection()

Standard_Integer IntPatch_ALineToWLine::CheckDeflection ( const gp_XYZ theMidPt,
const Standard_Real  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.

◆ GetSectionRadius()

Standard_Real 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 Handle< IntPatch_ALine > &  aline,
IntPatch_SequenceOfLine theLines 
) const

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

◆ MakeWLine() [2/2]

void IntPatch_ALineToWLine::MakeWLine ( const Handle< IntPatch_ALine > &  aline,
const Standard_Real  paraminf,
const Standard_Real  paramsup,
IntPatch_SequenceOfLine theLines 
) const

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

◆ SetTol3D()

void IntPatch_ALineToWLine::SetTol3D ( const Standard_Real  aT)

◆ SetTolOpenDomain()

void IntPatch_ALineToWLine::SetTolOpenDomain ( const Standard_Real  aT)

◆ SetTolTransition()

void IntPatch_ALineToWLine::SetTolTransition ( const Standard_Real  aT)

◆ StepComputing()

Standard_Boolean IntPatch_ALineToWLine::StepComputing ( const Handle< IntPatch_ALine > &  theALine,
const IntSurf_PntOn2S thePOn2S,
const Standard_Real  theLastParOfAline,
const Standard_Real  theCurParam,
const Standard_Real  theTgMagnitude,
const Standard_Real  theStepMin,
const Standard_Real  theStepMax,
const Standard_Real  theMaxDeflection,
Standard_Real 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()

Standard_Real IntPatch_ALineToWLine::Tol3D ( ) const

◆ TolOpenDomain()

Standard_Real IntPatch_ALineToWLine::TolOpenDomain ( ) const

◆ TolTransition()

Standard_Real IntPatch_ALineToWLine::TolTransition ( ) const

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