Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'remotes/origin/EDF_2020_Lot2'
[modules/shaper.git]
/
src
/
GeomAlgoAPI
/
GeomAlgoAPI_Offset.cpp
diff --git
a/src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp
b/src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp
index 4b0bb4031f51d42b85e808be836b9e478a3e5956..dccf9bd131f4df22ed8ac3542869d74fea253cf8 100644
(file)
--- a/
src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp
+++ b/
src/GeomAlgoAPI/GeomAlgoAPI_Offset.cpp
@@
-1,4
+1,4
@@
-// Copyright (C) 2019-20
19
CEA/DEN, EDF R&D
+// Copyright (C) 2019-20
20
CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-92,7
+92,8
@@
GeomAlgoAPI_Offset::GeomAlgoAPI_Offset(const GeomPlanePtr& thePlane,
setImpl(aParal);
setBuilderType(OCCT_BRepBuilderAPI_MakeShape);
setImpl(aParal);
setBuilderType(OCCT_BRepBuilderAPI_MakeShape);
- aParal->Init(aFace, GeomAbs_Arc, Standard_True);
+ Standard_Boolean isOpenResult = !aWire.Closed();
+ aParal->Init(aFace, GeomAbs_Arc, isOpenResult);
aParal->Perform(theOffsetValue, 0.);
if (aParal->IsDone()) {
TopoDS_Shape anOffset = aParal->Shape();
aParal->Perform(theOffsetValue, 0.);
if (aParal->IsDone()) {
TopoDS_Shape anOffset = aParal->Shape();