pub fn generate_rim_for_sdf_shell(
inner_mesh: &Mesh,
outer_mesh: &Mesh,
outer_vertex_offset: usize,
) -> (Vec<[u32; 3]>, usize)Expand description
Generate rim faces for SDF-based shell where inner and outer surfaces have different vertex counts and no 1:1 correspondence.
This function finds the closest outer boundary vertex for each inner boundary vertex using spatial matching, then generates triangles to connect the boundaries.
§Arguments
inner_mesh- The inner surface meshouter_mesh- The outer surface mesh (from SDF extraction)outer_vertex_offset- Offset to add to outer vertex indices
§Returns
A tuple of (rim faces, total boundary edge count).