Commit bb368c35e969a963862f4e3152340c1e1296356b

Authored by Thiago Franco de Moraes
1 parent 2f95d283
Exists in casmoothing_cython

Using a casmoothing written in cython

invesalius/data/surface.py
... ... @@ -533,11 +533,6 @@ class SurfaceManager():
533 533 # polydata.SetSource(None)
534 534 del polydata_append
535 535  
536   - w = vtk.vtkPLYWriter()
537   - w.SetInputData(polydata)
538   - w.SetFileName('/home/tfmoraes/Meshes/PLY/0051_bin.ply')
539   - w.Write()
540   -
541 536 if algorithm == 'ca_smoothing':
542 537 normals = vtk.vtkPolyDataNormals()
543 538 normals_ref = weakref.ref(normals)
... ...
invesalius/gui/dialogs.py
... ... @@ -1276,7 +1276,7 @@ class CAOptions(wx.Panel):
1276 1276 max_val=100.0, increment=0.1,
1277 1277 digits=2)
1278 1278  
1279   - self.min_weight = floatspin.FloatSpin(self, -1, value=0.2, min_val=0.0,
  1279 + self.min_weight = floatspin.FloatSpin(self, -1, value=0.5, min_val=0.0,
1280 1280 max_val=1.0, increment=0.1,
1281 1281 digits=1)
1282 1282  
... ...
setup.py
... ... @@ -56,6 +56,11 @@ elif sys.platform == 'win32':
56 56 Extension("invesalius.data.floodfill", ["invesalius/data/floodfill.pyx"],
57 57 include_dirs=[numpy.get_include()],
58 58 language='c++',),
  59 +
  60 + Extension("invesalius.data.cy_mesh", ["invesalius/data/cy_mesh.pyx"],
  61 + include_dirs=[numpy.get_include()],
  62 + extra_compile_args=['/openmp',],
  63 + language='c++',),
59 64 ])
60 65 )
61 66  
... ... @@ -81,5 +86,12 @@ else:
81 86 Extension("invesalius.data.floodfill", ["invesalius/data/floodfill.pyx"],
82 87 include_dirs=[numpy.get_include()],
83 88 language='c++',),
  89 +
  90 + Extension("invesalius.data.cy_mesh", ["invesalius/data/cy_mesh.pyx"],
  91 + include_dirs=[numpy.get_include()],
  92 + extra_compile_args=['-fopenmp', '-std=c++11'],
  93 + extra_link_args=['-fopenmp', '-std=c++11'],
  94 + language='c++',),
  95 +
84 96 ])
85 97 )
... ...