removed catch (...) in Drawing
which discarded type information when rethrowing base type
This commit is contained in:
parent
5e51a6cdf7
commit
1b1d8010a6
|
@ -139,16 +139,11 @@ void ProjectionAlgos::execute(void)
|
|||
Handle( HLRBRep_Algo ) brep_hlr = new HLRBRep_Algo;
|
||||
brep_hlr->Add(Input);
|
||||
|
||||
try {
|
||||
gp_Ax2 transform(gp_Pnt(0,0,0),gp_Dir(Direction.x,Direction.y,Direction.z));
|
||||
HLRAlgo_Projector projector( transform );
|
||||
brep_hlr->Projector(projector);
|
||||
brep_hlr->Update();
|
||||
brep_hlr->Hide();
|
||||
}
|
||||
catch (...) {
|
||||
Standard_Failure::Raise("Fatal error occurred while projecting shape");
|
||||
}
|
||||
gp_Ax2 transform(gp_Pnt(0,0,0),gp_Dir(Direction.x,Direction.y,Direction.z));
|
||||
HLRAlgo_Projector projector( transform );
|
||||
brep_hlr->Projector(projector);
|
||||
brep_hlr->Update();
|
||||
brep_hlr->Hide();
|
||||
|
||||
// extracting the result sets:
|
||||
HLRBRep_HLRToShape shapes( brep_hlr );
|
||||
|
|
Loading…
Reference in New Issue
Block a user