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:
@@ -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
|
||||
|
Reference in New Issue
Block a user