View Issue Details

IDProjectCategoryView StatusLast Update
0033154CommunityOCCT:Modeling Algorithmspublic2022-10-03 19:12
Reporterveksoft_164870 Assigned Tomsv 
PrioritynormalSeverityminor 
Status newResolutionopen 
PlatformWindowsOSVC++ 2022 
Product Version7.6.3 
Summary0033154: BRepOffsetAPI_MakePipeShell crash: StdFail_NotDone("BRep_API: command not done")
DescriptionHello.
When creating a pipe shell, I get the exception StdFail_NotDone("BRep_API: command not done").
The figure is successfully built for the profile files profile0.brep and profile1.brep (Screenshot_1.png).
The error occurs when using the files fail_profile0.brep and fail_profile1.brep (Screenshot_2.png).
Steps To ReproduceTopoDS_Shape make_pipe_shell( const std::vector<TopoDS_Wire>& profiles, const TopoDS_Wire& path )
{
    BRepOffsetAPI_MakePipeShell mkPipeShell(path);

    mkPipeShell.SetMode(true);
    mkPipeShell.SetForceApproxC1(true);
    mkPipeShell.SetDiscreteMode();
    mkPipeShell.SetTransitionMode(BRepBuilderAPI_RoundCorner);

    for (auto a : profiles)
        mkPipeShell.Add(a, false, true);

    if (!mkPipeShell.IsReady())
        std::logic_error("shape is not ready to build");

    mkPipeShell.Build();

    return mkPipeShell.Shape();

    return TopoDS_Shape();
}

TopoDS_Wire read(const char* file)
{
    BRep_Builder builder;

    TopoDS_Wire shape;

    std::ifstream is;
    is.open(file);
    BRepTools::Read(shape, is, builder);
    is.close();

    return shape;
}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    BRep_Builder builder;

    TopoDS_Wire wire = read("d:/test/wire.brep");

    { // successfully
        TopoDS_Wire profile0 = read("d:/test/profile0.brep");
        TopoDS_Wire profile1 = read("d:/test/profile1.brep");

        auto pipe = make_pipe_shell({ profile0, profile1 }, wire);
    }

    { // failed
        TopoDS_Wire profile0 = read("d:/test/fail_profile0.brep");
        TopoDS_Wire profile1 = read("d:/test/fail_profile1.brep");

        auto pipe = make_pipe_shell({ profile0, profile1 }, wire);
    }

    return a.exec();
}
TagsNo tags attached.
Test case number

Attached Files

  • profile0.brep (1,074 bytes)
  • profile1.brep (1,197 bytes)
  • Screenshot_1.png (59,863 bytes)
  • Screenshot_2.png (25,719 bytes)
  • wire.brep (4,261 bytes)
  • fail_profile0.brep (2,261 bytes)
  • file_profile1.brep (2,228 bytes)

Activities

veksoft_164870

2022-10-03 19:11

reporter  

profile0.brep (1,074 bytes)
profile1.brep (1,197 bytes)
Screenshot_1.png (59,863 bytes)
Screenshot_2.png (25,719 bytes)
wire.brep (4,261 bytes)
fail_profile0.brep (2,261 bytes)
file_profile1.brep (2,228 bytes)

Issue History

Date Modified Username Field Change
2022-10-03 19:11 veksoft_164870 New Issue
2022-10-03 19:11 veksoft_164870 Assigned To => msv
2022-10-03 19:11 veksoft_164870 File Added: profile0.brep
2022-10-03 19:11 veksoft_164870 File Added: profile1.brep
2022-10-03 19:11 veksoft_164870 File Added: Screenshot_1.png
2022-10-03 19:11 veksoft_164870 File Added: Screenshot_2.png
2022-10-03 19:11 veksoft_164870 File Added: wire.brep
2022-10-03 19:11 veksoft_164870 File Added: fail_profile0.brep
2022-10-03 19:11 veksoft_164870 File Added: file_profile1.brep