MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0023836Community[OCCT] OCCT:Modeling Algorithmspublic2013-03-19 15:332013-03-19 15:33
ReporterMauro Mariotti 
Assigned Tojgv 
PriorityhighSeveritymajor 
StatusnewResolutionopen 
PlatformWindowsOSVC++ 2010OS Version64 bit
Product Version[OCCT] 6.5.3 
Target VersionFixed in Version 
Summary0023836: missing result in hidden line removal
DescriptionThis 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 ReproduceI 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);
      // ...
    }
  }
TagsNo tags attached.
Test case number
Attached Files? file icon 2faces.brep (66,824 bytes) 2013-03-19 15:33

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
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


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker