Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes for 0020673 - Implementation of "Auto-correct edges orientation".
[modules/geom.git]
/
src
/
GEOMImpl
/
GEOMImpl_Fillet1dDriver.cxx
diff --git
a/src/GEOMImpl/GEOMImpl_Fillet1dDriver.cxx
b/src/GEOMImpl/GEOMImpl_Fillet1dDriver.cxx
index 83947d4ba4ec5aad2595c0ded940bdc4fa675da5..19b6b2d7a79d519fe9d7b3bd03a9a418105d82dd 100644
(file)
--- a/
src/GEOMImpl/GEOMImpl_Fillet1dDriver.cxx
+++ b/
src/GEOMImpl/GEOMImpl_Fillet1dDriver.cxx
@@
-155,6
+155,8
@@
Standard_Integer GEOMImpl_Fillet1dDriver::Execute(TFunction_Logbook& log) const
Handle(GEOM_Function) aRefShape = aCI.GetShape();
TopoDS_Shape aShape = aRefShape->GetValue();
Handle(GEOM_Function) aRefShape = aCI.GetShape();
TopoDS_Shape aShape = aRefShape->GetValue();
+ if (aShape.IsNull())
+ return 0;
if (aShape.ShapeType() != TopAbs_WIRE)
Standard_ConstructionError::Raise("Wrong arguments: polyline as wire must be given");
if (aShape.ShapeType() != TopAbs_WIRE)
Standard_ConstructionError::Raise("Wrong arguments: polyline as wire must be given");
@@
-162,6
+164,9
@@
Standard_Integer GEOMImpl_Fillet1dDriver::Execute(TFunction_Logbook& log) const
double rad = aCI.GetR();
double rad = aCI.GetR();
+ if ( rad < Precision::Confusion())
+ return 0;
+
// collect vertices for make fillet
TopTools_ListOfShape aVertexList;
TopTools_MapOfShape mapShape;
// collect vertices for make fillet
TopTools_ListOfShape aVertexList;
TopTools_MapOfShape mapShape;