occt: master 96b92906

Author Committer Branch Timestamp Parent
vkuzin smoskvin master 2021-08-13 11:43:22 master f1c209dc
Affected Issues  0029405: Modeling Algorithms - Check normal define status in HLRBRep_Data
Changeset 0029405: Modeling Algorithms - Check normal define status in HLRBRep_Data

Fixed exception when trying to calculate line and edge normal in methods HLRBRep_Data::OrientOutLine and HLRBRep_Data::OrientOthEdge, added a check for the existence of the normal before subsequent calculations. A correct check for zero derivative, correction of floating point error and division by zero determinant directly in HLRBRep_EdgeFaceTool::CurvatureValue was set.
mod - src/HLRBRep/HLRBRep_Data.cxx Diff File
mod - src/HLRBRep/HLRBRep_EdgeFaceTool.cxx Diff File
add - tests/bugs/modalg_7/bug29405 Diff File