]> OCCT Git - occt.git/commit
0029405: Modeling Algorithms - Check normal define status in HLRBRep_Data
authorvkuzin <vkuzin@opencascade.com>
Fri, 13 Aug 2021 11:43:22 +0000 (14:43 +0300)
committersmoskvin <smoskvin@opencascade.com>
Fri, 8 Oct 2021 17:51:13 +0000 (20:51 +0300)
commit96b92906deea229ecdec90d1cc84ed2cd8e9bf1e
tree46091b85be32d733a2468c5eec1873acbfbdaf89
parentf1c209dc77df73b3f34ef9385f8b86061a615e63
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.
src/HLRBRep/HLRBRep_Data.cxx
src/HLRBRep/HLRBRep_EdgeFaceTool.cxx
tests/bugs/modalg_7/bug29405 [new file with mode: 0644]