View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023836 | Community | OCCT:Modeling Algorithms | public | 2013-03-19 15:33 | 2013-03-19 15:33 |
Reporter | Mauro Mariotti | Assigned To | |||
Priority | high | Severity | major | ||
Status | new | Resolution | open | ||
Platform | Windows | OS | VC++ 2010 | ||
Product Version | 6.5.3 | ||||
Summary | 0023836: missing result in hidden line removal | ||||
Description | This is just one of several bugs I have found in hidden line removal. With the two attached faces, the computation of the contour along X fails to find all lines. It finds two curves on the right (one on each face), but none on the left (or the other way around, depending on the view orientation). | ||||
Steps To Reproduce | I am sorry, I don't know how to call HLRBRep_HLRToShape from DRAW. We use HLRAlgo_Projector and HLRBRep_HLRToShape, asking for both internal lines and outlines. If you cannot reproduce the bug with DRAW, please ask me more details. Here is my code, slightly simplified: // Build The algorithm object Handle(HLRBRep_Algo) myAlgo = new HLRBRep_Algo(); // Add Shapes into the algorithm myAlgo->Add(myShape, /*myNbIsos*/0); // Set The Projector gp_Ax2 syst(myPoitns, myDir); HLRAlgo_Projector proj(syst); myAlgo->Projector(proj); // Build HLR myAlgo->Update(); // Set The Edge Status; I want both visibile and hidden contours myAlgo->ShowAll(); // Build the extraction object : HLRBRep_HLRToShape aHLRToShape(myAlgo); // extract the results; const int nComp = 1; TopoDS_Shape compounds[nComp] = { // this is a method we have added to HLRBRep_HLRToShape, to have all outlines (both internal and along the edges) // as 3d curves (not projected on the XY plane): aHLRToShape.All3dOutLinesVCompound(), }; for (int jc = 0; jc < nComp; jc++) { if (compounds[jc].IsNull()) continue; for (TopoDS_Iterator it(compounds[jc]); it.More(); it.Next()) { const TopoDS_Shape &shape = it.Value(); const TopoDS_Edge &edg = TopoDS::Edge(shape); // ... } } | ||||
Tags | No tags attached. | ||||
Test case number | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-03-19 15:33 | Mauro Mariotti | New Issue | |
2013-03-19 15:33 | Mauro Mariotti | Assigned To | => jgv |
2013-03-19 15:33 | Mauro Mariotti | File Added: 2faces.brep |