Skip to content

Commit

Permalink
Fix incompatible pointer type assignment error in implicit_surface
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vbraun committed May 5, 2024
1 parent 744939e commit cec595e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/plot/plot3d/implicit_surface.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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] = <object>v
else:
y_vertices[y,z] = None

Expand Down Expand Up @@ -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] = <object>v
else:
z_vertices[y,z] = None

Expand Down Expand Up @@ -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] = <object>v
else:
x_vertices[y,z] = None

Expand Down

0 comments on commit cec595e

Please sign in to comment.