diff --git a/src/Meshing/Mage.py b/src/Meshing/Mage.py index f01e5b51f4dfe99721cbf28c4150624b3b0f4992..ce408ac0dea6f92c42a089268c4caa75f6aeb8e1 100644 --- a/src/Meshing/Mage.py +++ b/src/Meshing/Mage.py @@ -411,7 +411,7 @@ class MeshingWithMageMailleurTT(AMeshingTool): str, [ st_file, m_file, - "update_rk", step, + "update_kp", step, limites[0], limites[1], directrices[0], directrices[1], orientation, lm, linear, origin, origin_value diff --git a/src/Model/Geometry/ProfileXYZ.py b/src/Model/Geometry/ProfileXYZ.py index 14187233482493643ebf33f2f821829a7c4e9913..7936342aee3b547e13ea36c927edfd5e5a2877bf 100644 --- a/src/Model/Geometry/ProfileXYZ.py +++ b/src/Model/Geometry/ProfileXYZ.py @@ -651,8 +651,8 @@ class ProfileXYZ(Profile, SQLSubModel): Returns: Projection of the points of the profile on a plane. """ - if self.nb_points < 3: - return None + if self.nb_points < 2: + return [0.0] else: return self._get_station(self.points) diff --git a/src/View/Geometry/Profile/Plot.py b/src/View/Geometry/Profile/Plot.py index 136fcaf78973e0ff9201cd06b09f4f85342e6bfb..0eb1543f150cfb4f190c43c2b98529f90bdf1bf9 100644 --- a/src/View/Geometry/Profile/Plot.py +++ b/src/View/Geometry/Profile/Plot.py @@ -313,10 +313,6 @@ class Plot(PamhyrPlot): x_carto = self.data.x() y_carto = self.data.y() - if (len(x_carto) < 3 or len(y_carto) < 3 or len(x) < 3): - # Noting to do in this case - return - self.profile_line2D, = self.canvas.axes.plot( x, y, color=self.color_plot, lw=1.5, markersize=7, marker='+',