Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
48be17f
)
0023312: [CEA 1928] GEOM: Create group from second shape
author
vsr
<vsr@opencascade.com>
Thu, 4 Oct 2018 12:50:06 +0000
(15:50 +0300)
committer
vsr
<vsr@opencascade.com>
Thu, 4 Oct 2018 12:50:06 +0000
(15:50 +0300)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx
patch
|
blob
|
history
diff --git
a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx
b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx
index db197be5ce5b3afe906ca442f691599adb43bd1f..75b41d6e77cf20fcefaaefa4206101304b3e444d 100644
(file)
--- a/
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx
+++ b/
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx
@@
-4794,6
+4794,10
@@
static bool isSameEdge(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2)
gp_Pnt P2 = C1->Value(U); //Compute a point on two thirds of the edge's length
C2 = new Geom_TrimmedCurve(C2, U21, U22);
+ // vsr 04/10/2018: 0023312 - As curve may be periodic, its parameters may be normalized
+ // so, we re-take them from trimmed curve
+ U21 = C2->FirstParameter();
+ U22 = C2->LastParameter();
if(!GeomLib_Tool::Parameter(C2, P1, MAX_TOLERANCE, U) || U < U21 || U > U22)
return false;