MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #26498 All Revisions ] Back to Issue ]
Summary 0026498: BRepOffsetAPI_MakeOffset causes segmentation fault
Revision 2015-07-30 12:33 by msv
Steps To Reproduce BRepBuilderAPI_MakePolygon polygon;
polygon.Add(gp_Pnt(0.0,0.0,0.0));
polygon.Add(gp_Pnt(0.2, 0.0, 0.0));
polygon.Add(gp_Pnt(0.2, 0.2, 0.0));
polygon.Add(gp_Pnt(0.4, 0.2, 0.0));
polygon.Add(gp_Pnt(0.4, 0.4, 0.0));
polygon.Add(gp_Pnt(-0.06, 0.57, 0.0));
TopoDS_Wire wire = polygon.Wire();
BRepTools::Write(wire, "original.brep");

BRepOffsetAPI_MakeOffset builder(wire, GeomAbs_Intersection, true);
builder.Perform(-0.2, 0.0); // segmentation fault
TopoDS_Shape offset = builder.Shape();
BRepTools::Write(offset, "offset.brep");


#Draw script:
polyline w 0 0 0 0.2 0 0 0.2 0.2 0 0.4 0.2 0 0.4 0.4 0 -0.06 0.57 0
openoffset r w 1 -0.2 i
checkshape r_1

#Checkshape output:
On Shape faulty_1 :
BRepCheck_InvalidRange

Faulty shapes in variables faulty_1 to faulty_1
Revision 2015-07-30 10:35 by mat127
Steps To Reproduce BRepBuilderAPI_MakePolygon polygon;
polygon.Add(gp_Pnt(0.0,0.0,0.0));
polygon.Add(gp_Pnt(0.2, 0.0, 0.0));
polygon.Add(gp_Pnt(0.2, 0.2, 0.0));
polygon.Add(gp_Pnt(0.4, 0.2, 0.0));
polygon.Add(gp_Pnt(0.4, 0.4, 0.0));
polygon.Add(gp_Pnt(-0.06, 0.57, 0.0));
TopoDS_Wire wire = polygon.Wire();
BRepTools::Write(wire, "original.brep");

BRepOffsetAPI_MakeOffset builder(wire, GeomAbs_Intersection, true);
builder.Perform(-0.2, 0.0); // segmentation fault
TopoDS_Shape offset = builder.Shape();
BRepTools::Write(offset, "offset.brep");


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker