val mesh : TriangleMesh[_3D] = ???
val vtkPD = MeshConversion.meshToVtkPolyData(mesh)
// some processing with vtk
val decimator = new vtkDecimatePro()
decimator.SetInputData(vtkPD)
decimator.SetTargetReduction(0.9)
decimator.Update()
// converting it back
val decimatedMesh : TriangleMesh[_3D] = MeshConversion.vtkPolyDataToTriangleMesh(decimator.GetOutput())
--
You received this message because you are subscribed to the Google Groups "scalismo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalismo+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo/bcd6902d-b0dc-4e57-90f4-6f15eff3b8cen%40googlegroups.com.