Closed schuhschuh closed 3 years ago
This change can alter topology. It would be better to look for a different fix of this issue, such as by patching subdivide-brain-image
rather. Also, there could be some remaining issues with vtkIntersectionPolyDataFilter
(cf. https://gitlab.kitware.com/vtk/vtk/-/issues/16990).
Added -fill-wm-holes
to subdivide-brain
instead (cf. #757).
This should fix self-intersections after insertion of divider. However, in the particular case of the dHCP release 3 (CC00152AN04-65700), the actual appropriate fix would be to patch
subdivide-brain-image
to do a better job at filling in "holes" between the hemispheres in the Draw-EM segmentation. Alternatively, could try and identify the surface patch that intersects with the interior of the divider polygon and remove the hole interior surface, but that may be a bit more tricky.The change here simply joins the surface with the intersecting divider. This should preserve topology. After doing so, there were still a few self-intersections probably due to very small triangles, but these might be resolved by a subsequent smoothing.
CC @jcupitt @amakropoulos