mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0025582: SIGSEGV in thrusections of circle segments
Eliminating regressions Fixed compilation warning ('di' : unreferenced formal parameter). Added test bugs/modalg_5/bug25578
This commit is contained in:
parent
52ba6031e8
commit
76eeac70cf
@ -398,8 +398,12 @@ void CreateKPart(const TopoDS_Edge& Edge1,const TopoDS_Edge& Edge2,
|
|||||||
BW1.MakeWire(newW1);
|
BW1.MakeWire(newW1);
|
||||||
BW2.MakeWire(newW2);
|
BW2.MakeWire(newW2);
|
||||||
|
|
||||||
GeomAdaptor_Curve aC1Adaptor(C1);
|
GeomAdaptor_Curve aC1Adaptor;
|
||||||
GeomAdaptor_Curve aC2Adaptor(C2);
|
if (!C1.IsNull())
|
||||||
|
aC1Adaptor.Load(C1);
|
||||||
|
GeomAdaptor_Curve aC2Adaptor;
|
||||||
|
if (!C2.IsNull())
|
||||||
|
aC2Adaptor.Load(C2);
|
||||||
|
|
||||||
// calculate the surface
|
// calculate the surface
|
||||||
Handle(Geom_Surface) surface;
|
Handle(Geom_Surface) surface;
|
||||||
|
@ -137,7 +137,7 @@ static Standard_Integer samerange (Draw_Interpretor& /*di*/, Standard_Integer n,
|
|||||||
//purpose : Changes a weight of a pole on B-spline curve/surface
|
//purpose : Changes a weight of a pole on B-spline curve/surface
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
static Standard_Integer setweight(Draw_Interpretor& di, Standard_Integer n, const char** a)
|
static Standard_Integer setweight(Draw_Interpretor& /*di*/, Standard_Integer n, const char** a)
|
||||||
{
|
{
|
||||||
if (n < 4 || n > 5)
|
if (n < 4 || n > 5)
|
||||||
{
|
{
|
||||||
|
12
tests/bugs/modalg_5/bug25578
Normal file
12
tests/bugs/modalg_5/bug25578
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
puts "========="
|
||||||
|
puts "OCC25578"
|
||||||
|
puts "========="
|
||||||
|
puts ""
|
||||||
|
###########################################################
|
||||||
|
# SIGSEGV in BRepSweep_Rotation in case of singularities
|
||||||
|
###########################################################
|
||||||
|
|
||||||
|
psphere Sphere 5 0 90 90
|
||||||
|
explode Sphere F
|
||||||
|
revol rr Sphere_1 0 0 0 0 0 1 360
|
||||||
|
revol rr Sphere_1 0 0 0 1 0 0 90
|
Loading…
x
Reference in New Issue
Block a user