MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031669Community[OCCT] OCCT:Modeling Algorithmspublic2020-07-16 20:222020-07-16 20:22
Reporterabezotosniy 
Assigned Tomsv 
PrioritynormalSeverityminor 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.3.0 
Target VersionFixed in Version 
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
Attached Files

- Relationships

-  Notes
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


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker