MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #30346 All Revisions ] Back to Issue ]
Summary 0030346: Modeling Algorithms - BRepPrimAPI_MakeRevol throws "BRepSweep_Translation::MakeEmptyVertex"
Revision 2018-12-28 11:34 by ifv
Description Test case bugs/moddata_2/bug65 throws "BRepSweep_Translation::MakeEmptyVertex" exception within BRepSweep_Rotation::MakeEmptyVertex() method when exceptions are preserved (DEBUG build or No_Exception undefined).

Although #0000065 specifies, that the original issue will NOT be fixed,
it doesn't look reasonable keeping a broken test case in OCCT.
Either, the bug should be fixed, or test case removed / adopted.

Notice also a misprint in exception text specifying wrong class name, which should be also corrected:
TopoDS_Shape  BRepSweep_Rotation::MakeEmptyVertex
  (const TopoDS_Shape& aGenV, 
   const Sweep_NumShape& aDirV)
{
  //call only in construction mode with copy.
  Standard_ConstructionError_Raise_if
    (!myCopy,"BRepSweep_Translation::MakeEmptyVertex");


Really, problem (exception) occurs during history building and was caused by an attempt to obtain generated shape for subshape, which was really "deleted" by algorithm - this input subshape and its possible generated shape was not used in result.
To remove exception it is necessary to treat correctly "deleted" shapes in history - to add standard method "IsDeleted(...)" for rotation and translation algorithms.
Revision 2018-11-06 18:04 by kgv
Description Test case bugs/moddata_2/bug65 throws "BRepSweep_Translation::MakeEmptyVertex" exception within BRepSweep_Rotation::MakeEmptyVertex() method when exceptions are preserved (DEBUG build or No_Exception undefined).

Although #0000065 specifies, that the original issue will NOT be fixed,
it doesn't look reasonable keeping a broken test case in OCCT.
Either, the bug should be fixed, or test case removed / adopted.

Notice also a misprint in exception text specifying wrong class name, which should be also corrected:
TopoDS_Shape  BRepSweep_Rotation::MakeEmptyVertex
  (const TopoDS_Shape& aGenV, 
   const Sweep_NumShape& aDirV)
{
  //call only in construction mode with copy.
  Standard_ConstructionError_Raise_if
    (!myCopy,"BRepSweep_Translation::MakeEmptyVertex");


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker