Skip to main content

Module block_face_functions

Module block_face_functions 

Source

Structs§

Face
Quadrilateral face definition that mimics the Python implementation.
StructuredFace
Helper structure representing a structured face grid. Dense representation of a structured face grid.

Enums§

FaceAxis
Enumeration describing which index remains constant over a structured face.

Functions§

create_face_from_diagonals
Build a face from diagonal index pairs on a block.
faces_match
Compare two structured faces and determine whether they match.
find_face_nearest_point
Pick the face closest to a reference point.
find_matching_faces
Determine whether any faces on two blocks match.
full_face_match
Attempt a full (1:1) face match by comparing the 4 corner vertices.
full_face_match_transformed
Like full_face_match but applies a coordinate transformation to face_a’s corners before comparing.
get_outer_faces
Build the six outer faces for a block and identify internal matches.
match_faces_to_list
Convert serialized matched faces to a flat Face list.
outer_face_records_to_list
Convert serialized face records back into Face instances.
reduce_blocks
Reduce blocks by sampling every factor nodes along each axis.
rotate_block
Rotate a block using a 3×3 rotation matrix.
split_face
Split a face into subfaces along the specified diagonal indices.
unique_pairs
Deduplicate index pairs (order-agnostic).