View Issue Details

IDProjectCategoryView StatusLast Update
0031669CommunityOCCT:Modeling Algorithmspublic2020-07-16 20:22
Reporterabezotosniy Assigned Tomsv 
PrioritynormalSeverityminor 
Status newResolutionopen 
Product Version7.3.0 
Summary0031669: Crash while using BRepOffsetAPI_MakePipeShell
DescriptionCrash while using BRepOffsetAPI_MakePipeShell instead of result or error message.
Steps To Reproduceauto make_wire_f = [&](std::vector<double> pnts)
{
    BRep_Builder builder;

    BRepBuilderAPI_MakeWire wire_maker;

    for(int i = 3; i + 3 <= pnts.size(); i += 3)
    {
        TopoDS_Vertex start;
        builder.MakeVertex(start, gp_Pnt(pnts[i - 3], pnts[i - 2], pnts[i - 1]), Precision::Confusion());

        TopoDS_Vertex end;
        builder.MakeVertex(end, gp_Pnt(pnts[i], pnts[i + 1], pnts[i + 2]), Precision::Confusion());

        BRepBuilderAPI_MakeEdge edge_maker(start, end);

        wire_maker.Add(edge_maker.Edge());
    }

    wire_maker.Build();

    return wire_maker.Wire();
};

std::vector<double> profile_pnts =
{
  3, 0, 0,
  0, 3, 0,
  0, 0, -3,
  3, -3, -3,
  3, 0, 0
};

std::vector<double> path_pnts =
{
  0, 0, 0,
  0, -15, 0,
  10, -25, 0,
  38, -35, 0
};

TopoDS_Wire profile_shape = make_wire_f(profile_pnts);
TopoDS_Wire path_shape = make_wire_f(path_pnts);

BRepOffsetAPI_MakePipeShell crash_sweep(path_shape);
crash_sweep.SetTransitionMode(BRepBuilderAPI_TransitionMode::BRepBuilderAPI_RightCorner);
crash_sweep.Add(profile_shape);
crash_sweep.Build();
TagsNo tags attached.
Test case number

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-07-16 20:22 abezotosniy New Issue
2020-07-16 20:22 abezotosniy Assigned To => msv