mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0026522: Exception while copying offset on C0 surface
This commit is contained in:
parent
258faef5fc
commit
b9f21bee94
@ -211,7 +211,7 @@ static void derivatives(Standard_Integer MaxOrder,
|
|||||||
Handle(Geom_Geometry) Geom_OffsetSurface::Copy () const {
|
Handle(Geom_Geometry) Geom_OffsetSurface::Copy () const {
|
||||||
|
|
||||||
Handle(OffsetSurface) S;
|
Handle(OffsetSurface) S;
|
||||||
S = new OffsetSurface (basisSurf, offsetValue);
|
S = new OffsetSurface (basisSurf, offsetValue, Standard_True);
|
||||||
return S;
|
return S;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -923,7 +923,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS,
|
|||||||
GeomTools::GetReal(IS, O);
|
GeomTools::GetReal(IS, O);
|
||||||
Handle(Geom_Surface) BS;
|
Handle(Geom_Surface) BS;
|
||||||
GeomTools_SurfaceSet::ReadSurface(IS,BS);
|
GeomTools_SurfaceSet::ReadSurface(IS,BS);
|
||||||
S = new Geom_OffsetSurface(BS,O);
|
S = new Geom_OffsetSurface(BS,O,Standard_True);
|
||||||
return IS;
|
return IS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
17
tests/bugs/moddata_3/bug26522
Normal file
17
tests/bugs/moddata_3/bug26522
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
puts "================"
|
||||||
|
puts "OCC26522"
|
||||||
|
puts "================"
|
||||||
|
puts ""
|
||||||
|
#######################################################
|
||||||
|
## Exception while copying offset on C0 surface
|
||||||
|
#######################################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug26522_s.brep] s
|
||||||
|
|
||||||
|
set info [checkshape s]
|
||||||
|
|
||||||
|
if { [regexp "This shape seems to be valid" ${info}] == 1 } {
|
||||||
|
puts "OK: copying offset on C0 surface is correct"
|
||||||
|
} else {
|
||||||
|
puts "Error: copying offset on C0 surface is incorrect"
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user