Skip to main content

Module mesh

Module mesh 

Source
Expand description

Mesh utilities for BET

Functions§

bet2_vertex_normals
bet2’s Mpoint::local_normal: the sum of its triangles’ Triangle::normal(), (v2 − v0) × (v1 − v0) (not normalised, so area-weighted), normalised.
build_neighbor_matrix
Build neighbor matrix for vectorized neighbor lookups
compute_mean_edge_length_mm
Compute mean edge length for vertices already in mm coordinates
self_intersection_heuristic
Compute self-intersection heuristic by comparing vertex distances between current and original mesh.
vertex_distance 🔒
Compute distance between two vertices (already in mm)