Wildmeshing Toolkit
Loading...
Searching...
No Matches
Functions
geo Namespace Reference

Functions

 _split_surfaces (msh_path, sel_a, sel_b)
 
float min_separation_3d (msh_path, sel_a, sel_b)
 
 interface_polyline_2d (msh_path, selection)
 
float roughness_2d (coords, edges)
 
float polyline_length (coords, edges)
 
 signed_volumes (msh_path)
 

Detailed Description

Geometry measurements used by the tests: body-to-body separation,
2D interface roughness/length, and element-inversion checks.

Function Documentation

◆ _split_surfaces()

geo._split_surfaces (   msh_path,
  sel_a,
  sel_b 
)
protected
Extract the two selected surfaces; returns (coords, faces_a, faces_b)
with faces as (n,3) global-index triangle arrays (3D only).

◆ interface_polyline_2d()

geo.interface_polyline_2d (   msh_path,
  selection 
)
Return (coords (n,2), edges (m,2) global indices) of a 2D interface.

◆ min_separation_3d()

float geo.min_separation_3d (   msh_path,
  sel_a,
  sel_b 
)
Minimum vertex-to-surface distance between the two selected surfaces
(checked in both directions). Exact for flat facing surfaces; a tight
upper bound in general.

◆ roughness_2d()

float geo.roughness_2d (   coords,
  edges 
)
Total turning of the interface: sum over 2-valent nodes of
|pi - angle between incident edges|. A straight line scores 0.

◆ signed_volumes()

geo.signed_volumes (   msh_path)
Signed volumes (3D tets) or signed areas (2D triangles) of every
primitive, deduplicated across multi-tag copies, in a stable order
(sorted vertex tuples). Comparing signs pre/post detects inversions.