DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0030961

HLRBRep_Algo/HLRBRep_HLRToShape return empty compound

CommunityOCCT:Modeling Algorithmsnew1 public note

Search issues

Description

Valid shape produces empty result when passed through HLRBREP_Algo. Same shape produces good result when passed through HLRBRep_PolyAlgo.

DRAWEXE fails with message "Error: AIS_Shape::Compute() HLR Algorithm has failed ()"

Steps to reproduce

pload MODELING VISUALIZATION
restore Attachment 1 (BREP) s
vclear
vinit View1
vdisplay -dispMode 1 s
vfront
vfit
# polyAlgo is OK
vhlr on -algoType polyAlgo
# algo fails
vhlr on -algoType algo

Fails with construction error exception in gp_Dir due to zero normal in Contap_Contour:
     TKHLR.dll!gp_Dir::gp_Dir(const gp_Vec & V) Line 32	C++
>	TKHLR.dll!Contap_Contour::Perform(const opencascade::handle<Adaptor3d_TopolTool> & Domain) Line 1709	C++
     TKHLR.dll!Contap_Contour::Perform(const opencascade::handle<Adaptor3d_HSurface> & Surf, const opencascade::handle<Adaptor3d_TopolTool> & Domain) Line 166	C++
     TKHLR.dll!HLRTopoBRep_DSFiller::Insert(const TopoDS_Shape & S, Contap_Contour & FO, HLRTopoBRep_Data & DS, NCollection_DataMap<TopoDS_Shape,BRepTopAdaptor_Tool,TopTools_ShapeMapHasher> & MST, const int nbIso) Line 102	C++
     TKHLR.dll!HLRTopoBRep_OutLiner::Fill(const HLRAlgo_Projector & P, NCollection_DataMap<TopoDS_Shape,BRepTopAdaptor_Tool,TopTools_ShapeMapHasher> & MST, const int nbIso) Line 96	C++
     TKHLR.dll!HLRBRep_ShapeToHLR::Load(const opencascade::handle<HLRTopoBRep_OutLiner> & S, const HLRAlgo_Projector & P, NCollection_DataMap<TopoDS_Shape,BRepTopAdaptor_Tool,TopTools_ShapeMapHasher> & MST, const int nbIso) Line 54	C++
     TKHLR.dll!HLRBRep_InternalAlgo::Update() Line 106	C++


execute DRAWEXE Attachment 1 (BREP) as follows:

Author@huxley ~ $ occDraw.sh
OCCT DRAWEXE v7.3.0
Hint: use "pload ALL" command to load standard commands
Draw[1]> Draw[2]> pload ALL
1
Draw[3]> restore Attachment 1 (BREP)
bulletShape
Draw[4]> vinit
Driver1/Viewer1/View1
Draw[5]> vdisplay bulletShape
Draw[6]> vfront
Draw[7]> vfit
Draw[8]> vhlrtype algo
Draw[9]> vhlr on
Error: AIS_Shape::Compute() HLR Algorithm has failed ()

Draw[10]> vhlr off
Draw[11]> vhlrtype polyalgo
Draw[12]> vhlr on
Draw[13]> exit
OCCT DRAWEXE v7.3.0 finished
Author@huxley ~ $

Additional information

FreeCAD bug report may have additional information: https://www.freecadweb.org/tracker/view.php?id=4122

Public activity

1 archived note

Participants are labeled by their role within this record.

01Author
This appears to still be present in 7.7.1