This commit is contained in:
Theophile Terraz committed 2024-09-02 11:58:11 +02:00
1 parent 5204b2cef2
commit 06e621399b
3 files changed
+3 -7

No files matched your search

+1 -1
View File
@@ -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
+2 -2
View File
@@ -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)
-4
View File
@@ -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='+',