Handle(Geom_Geometry) Geom_OffsetSurface::Copy () const {
Handle(OffsetSurface) S;
- S = new OffsetSurface (basisSurf, offsetValue);
+ S = new OffsetSurface (basisSurf, offsetValue, Standard_True);
return S;
}
GeomTools::GetReal(IS, O);
Handle(Geom_Surface) BS;
GeomTools_SurfaceSet::ReadSurface(IS,BS);
- S = new Geom_OffsetSurface(BS,O);
+ S = new Geom_OffsetSurface(BS,O,Standard_True);
return IS;
}
--- /dev/null
+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"
+}