Hidden Line or Boolean limitation?

Hi all,
As you can see in the image at http://www.geocities.com/anassisi/OCCAECBeta.JPG
I fused 3 boxes and the hidden line does not work for all faces of the same shape.

Here is the construction code:
TopoDS_Shape w1 = BRepPrimAPI_MakeBox(gp_Pnt( 0. , 0. , 0. ), 400. , 10. , 96. );
TopoDS_Shape w2 = BRepPrimAPI_MakeBox(gp_Pnt( 390. , 0. , 0. ), 10. , 300. , 96. );
TopoDS_Shape w3 = BRepPrimAPI_MakeBox(gp_Pnt( 400. , 290. , 0. ), -400. , 10. , 96. );
TopoDS_Shape w4 = BRepPrimAPI_MakeBox(gp_Pnt( 0. , 0. , 0. ), 10. , 300. , 96. );

// Boolean between w
TopoDS_Shape h1 = BRepAlgo_Fuse(w1,w2);
h1 = BRepAlgo_Fuse(h1,w3);
h1 = BRepAlgo_Fuse(h1,w4);

// Check shape
BRepCheck_Analyzer TheVerif(h1);
if (!TheVerif.IsValid(h1))
{
//if not valid show one box
h1 = BRepPrimAPI_MakeBox(gp_Pnt( 0. , 0. , 0. ), 400. , 10. , 96. );
}

Handle(AIS_Shape) anAISShapeh1 = new AIS_Shape(h1);
myAISContext->SetColor(anAISShapeh1,Quantity_NOC_BLACK);
myAISContext->SetDisplayMode(anAISShapeh1,1);
myAISContext->Display(anAISShapeh1);

Patrik Mueller's picture

Hi Andrea,

there is a problem with HLR: http://www.opencascade.org/org/forum/thread_6628/
Do you have patched HLR?

Greets,

Patrik