Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0026562Community[OCCT] OCCT:Modeling Algorithmspublic2015-08-14 14:552015-08-14 14:55
Assigned Tojgv 
PlatformLinuxOSCentOS 7.1 64bitOS Version7.1.1503
Product Version[OCCT] 6.9.0 
Target VersionFixed in Version 
Summary0026562: BRepAlgoAPI_Section generates incorrect result
DescriptionThe resulting edge of the intersection of the attached shapes "cutShape1.brep" and "cutShape2.brep" lies inside the first shape, but does exceed the boundaries of the second shape. The resulting edge can be found in the attachment "cutResultFail.brep".

Tested with OCCT Version 6.9.0 patch 0000001, built from git tag V6_9_0p1

Steps To ReproduceThe following code was used for the computation of the intersection:

    TopoDS_Shape cutShape1, cutShape2;
    BRep_Builder builder;

    Standard_Boolean result1 = BRepTools::Read(cutShape1, "cutShape1.brep", builder);
    Standard_Boolean result2 = BRepTools::Read(cutShape2, "cutShape2.brep", builder);

    if (!result1 || !result2) {
        std::cerr << "Error reading input files cutShape1.brep or cutShape2.brep for intersection" << std::endl;
        return 1;

    BRepAlgoAPI_Section cutter(cutShape1, cutShape2, Standard_False);
    if (!cutter.IsDone()) {
        std::cerr << "Cutting of shapes not successfull!" << std::endl;
        return 1;
    TopoDS_Shape result = cutter.Shape();
    BRepTools::Write(result, "cutResult.brep");

    return 0;
TagsNo tags attached.
Test case number
Attached Filesgz file icon cutShapes.tar.gz (92,251 bytes) 2015-08-14 14:55

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2015-08-14 14:55 rlander New Issue
2015-08-14 14:55 rlander Assigned To => jgv
2015-08-14 14:55 rlander File Added: cutShapes.tar.gz

Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker