Commit 07529baf889a10c25d473f35cdbdbd7a8d72789c

Authored by Thiago Franco de Moraes
1 parent 762835ae
Exists in casmoothing_cython

Compiling in Windows

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/data/cy_mesh.pyx
@@ -412,7 +412,7 @@ cdef void taubin_smooth(Mesh mesh, vector[weight_t]& weights, float l, float m, @@ -412,7 +412,7 @@ cdef void taubin_smooth(Mesh mesh, vector[weight_t]& weights, float l, float m,
412 """ 412 """
413 cdef int s, i, nvertices 413 cdef int s, i, nvertices
414 nvertices = mesh.vertices.shape[0] 414 nvertices = mesh.vertices.shape[0]
415 - cdef vector[Point] D = vector[Point](mesh.vertices.shape[0]) 415 + cdef vector[Point] D = vector[Point](nvertices)
416 cdef vertex_t* vi 416 cdef vertex_t* vi
417 for s in xrange(steps): 417 for s in xrange(steps):
418 for i in prange(nvertices, nogil=True): 418 for i in prange(nvertices, nogil=True):