View Issue Details

IDProjectCategoryView StatusLast Update
0023688CommunityOCCT:Modeling Algorithmspublic2016-12-22 11:30
Reportereryar Assigned Tobugmaster  
PrioritynormalSeveritymajor 
Status closedResolutionunable to reproduce 
PlatformWindowsOSVC++ 2010 
Product Version6.5.0 
Summary0023688: BRepAlgoAPI_Fuse get wrong result
DescriptionBRepAlgoAPI_Fuse get wrong result when do operation on a box and a torus.
My code as follow:
    // Boolean opeartion: Union (Fuse)
    gp_Ax2 datum;
    datum.SetLocation(gp_Pnt(500, 0, 0));

    Handle_AIS_Shape theFuseBox = new AIS_Shape(BRepPrimAPI_MakeBox(datum, 60,200,70));
    myAISContext->Display(theFuseBox);

    Handle_AIS_Shape theFuseTorus = new AIS_Shape(BRepPrimAPI_MakeTorus(datum, 80, 30, PI));
    myAISContext->Display(theFuseTorus);

    myAISContext->Erase(theFuseBox);
    myAISContext->Erase(theFuseTorus);

    Handle_AIS_Shape theFuseShape = new AIS_Shape(BRepAlgoAPI_Fuse(theFuseBox->Shape(), theFuseTorus->Shape()));
    theFuseShape->SetDisplayMode(AIS_Shaded);
    myAISContext->Display(theFuseShape);

The result see the picture in the upload file.
TagsNo tags attached.
Test case numberNot needed

Attached Files

Activities

eryar

2013-01-06 14:43

developer  

BRepAlgoAPI_Fuse.bmp (557,366 bytes)   

eryar

2013-09-04 18:59

developer  

BRepAlgoAPI_Fuse.png (18,759 bytes)   

eryar

2016-12-22 06:44

developer   ~0061976

opencascade-7.1.0 fixed the problem.
Tcl script:
pload ALL

box b 60 200 70
ptorus t 80 30

bop b t
bopfuse r

vdisplay r

msv

2016-12-22 09:41

developer   ~0061983

Dear bugmaster, please close this bug.

Issue History

Date Modified Username Field Change
2013-01-06 14:43 eryar New Issue
2013-01-06 14:43 eryar Assigned To => jgv
2013-01-06 14:43 eryar File Added: BRepAlgoAPI_Fuse.bmp
2013-09-04 18:59 eryar File Added: BRepAlgoAPI_Fuse.png
2016-12-22 06:43 eryar Assigned To jgv => eryar
2016-12-22 06:44 eryar Note Added: 0061976
2016-12-22 09:41 msv Note Added: 0061983
2016-12-22 09:41 msv Assigned To eryar => bugmaster
2016-12-22 09:41 msv Priority high => normal
2016-12-22 09:41 msv Status new => feedback
2016-12-22 09:41 msv Resolution open => unable to reproduce
2016-12-22 11:30 apn Test case number => Not needed
2016-12-22 11:30 apn Status feedback => closed