Skip to main content

transform_face

Function transform_face 

Source
pub fn transform_face(
    topo: &mut Topology,
    face_id: FaceId,
    matrix: &Mat4,
) -> Result<(), OperationsError>
Expand description

Apply an affine transform to a face, modifying vertex positions, edge curve geometry, and the face surface in place.

Transforms all vertices/edges in the face’s outer and inner wires, then updates the face surface geometry (plane normal, NURBS CPs, etc.).

§Errors

Returns an error if the matrix is degenerate or a referenced entity is missing.