mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030272: Modeling Algorithms - Incorrect work of gproject
-fix TolU/V for approximation; -fix cutting tool for approximation; -add method Adaptor3d_HSurfaceTool::IsSurfG1. -add test bugs/moddata_3/bug30272
This commit is contained in:
@@ -1784,6 +1784,22 @@ Standard_Real ProjLib_CompProjectedCurve::LastParameter() const
|
||||
return myCurve->LastParameter();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Continuity
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
GeomAbs_Shape ProjLib_CompProjectedCurve::Continuity() const
|
||||
{
|
||||
GeomAbs_Shape ContC = myCurve->Continuity();
|
||||
GeomAbs_Shape ContSu = mySurface->UContinuity();
|
||||
if ( ContSu < ContC) ContC = ContSu;
|
||||
GeomAbs_Shape ContSv = mySurface->VContinuity();
|
||||
if ( ContSv < ContC) ContC = ContSv;
|
||||
|
||||
return ContC;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : MaxDistance
|
||||
//purpose :
|
||||
|
@@ -158,6 +158,9 @@ public:
|
||||
//! which has a projection on S.
|
||||
Standard_EXPORT Standard_Real LastParameter() const Standard_OVERRIDE;
|
||||
|
||||
//! Returns the Continuity used in the approximation.
|
||||
Standard_EXPORT GeomAbs_Shape Continuity() const Standard_OVERRIDE;
|
||||
|
||||
//! Returns the number of intervals which define
|
||||
//! an S continuous part of the projected curve
|
||||
Standard_EXPORT Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE;
|
||||
|
Reference in New Issue
Block a user