1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027892: Construction error in offset

Provide proper initialization of the field Geom_OffsetSurface::myOscSurf in the case of creating offset of the trimmed bspline surface.

Adjusting test cases according to their new behavior.
This commit is contained in:
nbv
2016-09-27 17:46:14 +03:00
committed by apn
parent 88e55ec7ef
commit 41ce5887ad
5 changed files with 15 additions and 19 deletions

View File

@@ -221,15 +221,15 @@ void Geom_OffsetSurface::SetBasisSurface (const Handle(Geom_Surface)& S,
equivSurf = Surface();
if (basisSurf->IsKind(STANDARD_TYPE(Geom_BSplineSurface)) ||
basisSurf->IsKind(STANDARD_TYPE(Geom_BezierSurface)))
if (aCheckingSurf->IsKind(STANDARD_TYPE(Geom_BSplineSurface)) ||
aCheckingSurf->IsKind(STANDARD_TYPE(Geom_BezierSurface)))
{
// Tolerance en dur pour l'instant ,mais on devrait la proposer dans le constructeur
// et la mettre en champ, on pourrait utiliser par exemple pour l'extraction d'iso
// et aussi pour les singularite. Pour les surfaces osculatrices, on l'utilise pour
// detecter si une iso est degeneree.
const Standard_Real Tol = Precision::Confusion(); //0.0001;
myOscSurf = new Geom_OsculatingSurface(basisSurf, Tol);
myOscSurf = new Geom_OsculatingSurface(aCheckingSurf, Tol);
}
// Surface value calculator