Skip to main content

Module mesh_surface_frames

Module mesh_surface_frames 

Source
Expand description

Caller-buffered seam-aware box projection and source normal generation. Caller-buffered seam-aware box projection and source normal generation.

Structs§

SurfaceFrameReceipt

Enums§

SurfaceFrameError

Functions§

box_project_mesh_into
Triangle charts choose the dominant face axis and duplicate corners at UV seams. Supplied source normals survive duplication, keeping curved coachwork smooth; flat shading may be explicitly requested for metal sheet/box assets. Triangle order is unchanged, so existing submesh/material ranges still apply.
box_project_mesh_with_sources_into
Also emits the original vertex index for each chart vertex. Skin influences and other vertex-aligned fields must follow this lineage through UV seams.
vertex_normals_from_indices_into
Equivalent index-stream entry for scene merges and geometry fit updates.
vertex_normals_into
Area-weighted source vertex normals. Shared vertices remain smooth, and coincident but independently authored vertices retain their own hard edges.