From cec595ef953bb9e180aadee8583ad5a2fa5577d3 Mon Sep 17 00:00:00 2001 From: Volker Braun Date: Sun, 5 May 2024 13:45:15 +0200 Subject: [PATCH] Fix incompatible pointer type assignment error in implicit_surface Actual output: error: assignment to 'PyObject *' {aka 'struct _object *'} from incompatible pointer type 'struct __pyx_obj_4sage_4plot_6plot3d_16implicit_surface_VertexInfo *' [-Wincompatible-pointer-types --- src/sage/plot/plot3d/implicit_surface.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sage/plot/plot3d/implicit_surface.pyx b/src/sage/plot/plot3d/implicit_surface.pyx index df28f7c6e6b..581eddff2d4 100644 --- a/src/sage/plot/plot3d/implicit_surface.pyx +++ b/src/sage/plot/plot3d/implicit_surface.pyx @@ -522,7 +522,7 @@ cdef class MarchingCubesTriangles(MarchingCubes): if not(self.color_function is None): self.apply_color_func(&v.color, self.color_function, self.colormap, v) - y_vertices[y,z] = v + y_vertices[y,z] = v else: y_vertices[y,z] = None @@ -556,7 +556,7 @@ cdef class MarchingCubesTriangles(MarchingCubes): if not(self.color_function is None): self.apply_color_func(&v.color, self.color_function, self.colormap, v) - z_vertices[y,z] = v + z_vertices[y,z] = v else: z_vertices[y,z] = None @@ -631,7 +631,7 @@ cdef class MarchingCubesTriangles(MarchingCubes): if not(self.color_function is None): self.apply_color_func(&v.color, self.color_function, self.colormap, v) - x_vertices[y,z] = v + x_vertices[y,z] = v else: x_vertices[y,z] = None