View Issue Details

IDProjectCategoryView StatusLast Update
0026562CommunityOCCT:Modeling Algorithmspublic2015-08-14 14:55
Reporterrlander Assigned Tojgv 
PrioritynormalSeveritymajor 
Status newResolutionopen 
PlatformLinuxOSCentOS 7.1 64bit 
Product Version6.9.0 
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);
    cutter.ComputePCurveOn1(Standard_True);
    cutter.Approximation(Standard_True);
    cutter.Build();
    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 Files

  • cutShapes.tar.gz (92,251 bytes)

Activities

rlander

2015-08-14 14:55

reporter  

cutShapes.tar.gz (92,251 bytes)

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