|
Open CASCADE Technology 7.9.3
|
#include <IntPatch_ALineToWLine.hxx>
Public Member Functions | |
| IntPatch_ALineToWLine (const Handle< Adaptor3d_Surface > &theS1, const Handle< Adaptor3d_Surface > &theS2, const Standard_Integer theNbPoints=200) | |
| Constructor. | |
| 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. | |
| void | MakeWLine (const Handle< IntPatch_ALine > &aline, const Standard_Real paraminf, const Standard_Real paramsup, IntPatch_SequenceOfLine &theLines) const |
| Converts aline (limited by paraminf and paramsup) to the set of Walking-lines and adds them in theLines. | |
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. | |
| 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. | |
| 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. | |
| void | CorrectEndPoint (Handle< IntSurf_LineOn2S > &theLine, const Standard_Integer 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. | |
| IntPatch_ALineToWLine::IntPatch_ALineToWLine | ( | const Handle< Adaptor3d_Surface > & | theS1, |
| const Handle< Adaptor3d_Surface > & | theS2, | ||
| const Standard_Integer | theNbPoints = 200 ) |
Constructor.
|
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.
|
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.
|
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.
| void IntPatch_ALineToWLine::MakeWLine | ( | const Handle< IntPatch_ALine > & | aline, |
| const Standard_Real | paraminf, | ||
| const Standard_Real | paramsup, | ||
| IntPatch_SequenceOfLine & | theLines ) const |
Converts aline (limited by paraminf and paramsup) to the set of Walking-lines and adds them in theLines.
| 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.
| void IntPatch_ALineToWLine::SetTol3D | ( | const Standard_Real | aT | ) |
| void IntPatch_ALineToWLine::SetTolOpenDomain | ( | const Standard_Real | aT | ) |
| void IntPatch_ALineToWLine::SetTolTransition | ( | const Standard_Real | aT | ) |
|
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.
| Standard_Real IntPatch_ALineToWLine::Tol3D | ( | ) | const |
| Standard_Real IntPatch_ALineToWLine::TolOpenDomain | ( | ) | const |
| Standard_Real IntPatch_ALineToWLine::TolTransition | ( | ) | const |