]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
The algorithm to split any curve by any point was fixed to rightly split the curve... v1.4.2
authorabk <abk@opencascade.com>
Tue, 30 Jun 2015 14:47:08 +0000 (17:47 +0300)
committerabk <abk@opencascade.com>
Tue, 30 Jun 2015 14:48:54 +0000 (17:48 +0300)
src/HYDROData/HYDROData_PolylineOperator.cxx

index 81ca954ef06511a52858254ea4766c6b5c77f5c6..92c766c3e423b2c92495afa949a2699899d42c56 100644 (file)
@@ -275,14 +275,16 @@ static void SplitCurveByPoint(
     TopoDS_Edge aFE = TopoDS::Edge(aEdge.Oriented(TopAbs_FORWARD));
     ShapeAnalysis_TransferParametersProj aSATPP(aFE, TopoDS_Face());
     aSATPP.SetMaxTolerance(Precision::Confusion());
-    TopoDS_Vertex aSplitV;
+    TopoDS_Vertex aSplitV1, aSplitV2;
     BRep_Builder().MakeVertex(
-      aSplitV, aCurve.Value(theParameter), Precision::Confusion());
+      aSplitV1, aCurve.Value(theParameter), Precision::Confusion());
+    BRep_Builder().MakeVertex(
+      aSplitV2, aCurve.Value(theParameter), Precision::Confusion());
 
     TopoDS_Edge aEParts[] = {
       ShapeBuild_Edge().CopyReplaceVertices(aFE, TopoDS_Vertex(),
-        TopoDS::Vertex(aSplitV.Oriented(TopAbs_REVERSED))),
-      ShapeBuild_Edge().CopyReplaceVertices(aFE, aSplitV, TopoDS_Vertex())};
+        TopoDS::Vertex(aSplitV1.Oriented(TopAbs_REVERSED))),
+      ShapeBuild_Edge().CopyReplaceVertices(aFE, aSplitV2, TopoDS_Vertex())};
     ShapeBuild_Edge().CopyPCurves(aEParts[0], aFE);
     ShapeBuild_Edge().CopyPCurves(aEParts[1], aFE);
     BRep_Builder().SameRange(aEParts[0], Standard_False);