MantisBT - Community
View Issue Details
0029976Community[OCCT] OCCT:Modeling Datapublic2018-07-20 10:402018-10-29 13:13
sraymond 
bugmaster 
normalmajor 
closedunable to reproduce 
MacOSX
[OCCT] 7.3.0 
[OCCT] 7.4.0 
0029976: Regession from 7.2.0 on osx Faces created from gp_Cir have incorrect location
With the included code (case 0), face position is incorrect as shown on picture.
The issue can't be reproduced on windows os.
The issue can't be reproduced on osx with occt 7.2

BRepPrimAPI_MakeCylinder reproduce the same issue.

The use of gp_Elips gives correct position.

Thje error seems to be only on X coordinate
    TopoDS_Solid aSolid;
    TopoDS_Face circleF;
    int solidBuild = 0;
    switch (solidBuild) {
    case 0:{
        gp_Ax2 anAx2(gp_Pnt(0.5,-0.5,0.5),gp_Dir(0.,1.,0.));
        gp_Circ aCirc(anAx2,0.25);
        TopoDS_Edge EdCircle = BRepBuilderAPI_MakeEdge(aCirc);
        TopoDS_Wire circleW = BRepBuilderAPI_MakeWire(EdCircle);
        circleF = BRepBuilderAPI_MakeFace(circleW,true);
        aSolid = TopoDS::Solid(BRepPrimAPI_MakePrism(circleF,gp_Vec(0.,2.,0.)));
        break;
    }
    case 1:{
        gp_Ax2 anAx2(gp_Pnt(0.5,-0.5,0.5),gp_Dir(0.,1.,0.));
        aSolid = BRepPrimAPI_MakeCylinder(anAx2,0.25,2.).Solid();
        break;
    }
    case 2:{
        gp_Ax2 anAx2(gp_Pnt(0.5,-0.5,0.5),gp_Dir(0.,1.,0.));
        gp_Elips aCirc(anAx2,0.25,0.1);
        TopoDS_Edge EdCircle = BRepBuilderAPI_MakeEdge(aCirc);
        TopoDS_Wire circleW = BRepBuilderAPI_MakeWire(EdCircle);
        circleF = BRepBuilderAPI_MakeFace(circleW,true);
        aSolid = TopoDS::Solid(BRepPrimAPI_MakePrism(circleF,gp_Vec(0.,2.,0.)));
            break;
        }
        default:
            break;
    }
No tags attached.
related to 0029978closed bugmaster Open CASCADE Foundation Classes, macOS - the result of reading some entity from STEP looks odd 
png bug2.png (272,189) 2018-07-20 10:40
https://tracker.dev.opencascade.org/
Issue History
2018-07-20 10:40sraymondNew Issue
2018-07-20 10:40sraymondAssigned To => msv
2018-07-20 10:40sraymondFile Added: bug2.png
2018-10-09 22:12abvRelationship addedrelated to 0029978
2018-10-09 22:16abvNote Added: 0079832
2018-10-09 22:16abvAssigned Tomsv => sraymond
2018-10-09 22:16abvStatusnew => feedback
2018-10-11 13:31sraymondNote Added: 0079884
2018-10-16 08:24sraymondNote Added: 0079991
2018-10-16 08:24sraymondAssigned Tosraymond => msv
2018-10-16 08:24sraymondStatusfeedback => resolved
2018-10-16 09:57msvNote Added: 0079994
2018-10-16 09:57msvAssigned Tomsv => bugmaster
2018-10-16 09:57msvStatusresolved => feedback
2018-10-16 09:58msvResolutionopen => unable to reproduce
2018-10-29 13:13bugmasterStatusfeedback => closed

Notes
(0079832)
abv   
2018-10-09 22:16   
@sraymond

The problem seems to be the same as in 0029978, can you please try to apply the fix made for that issue and see whether it helps?
(0079884)
sraymond   
2018-10-11 13:31   
@abv

I tried to run the code with a freshly compiled version of oc, using master branch.

The problem is fixed.

Thanks
(0079991)
sraymond   
2018-10-16 08:24   
@abv

I tried to run the code with a freshly compiled version of oc, using master branch.

The problem is fixed.

Thanks
(0079994)
msv   
2018-10-16 09:57   
Dear bugmaster, please close this bug.