clean_up_manifold_triangles: Clean up manifold mesh

View source: R/smoothing_on_manifolds.R

clean_up_manifold_trianglesR Documentation

Clean up manifold mesh

Description

If mesh edge has 2+ attached triangles, keep the 2 triangles most well-connected triangles

Usage

clean_up_manifold_triangles(manifold, k = 1)

Arguments

manifold

A list of length 2 with names 'vertex_matrix' and 'triangle_matrix' like bic_obj object produced by read_obj

k

degrees-of-seperation for defining neighbours. Default is 1 (i.e. adjacent vertices)

Details

increasing k drastically slows down computation

Value

A list of length 2 with names 'vertex_matrix' and 'triangle_matrix' similar to 'manifold' argument. Problematic triangles (if they exist) are removed from the mesh.


Mouse-Imaging-Centre/RMINC documentation built on Nov. 12, 2022, 1:50 p.m.