Skip to main content

transform_solid

Function transform_solid 

Source
pub fn transform_solid(
    topo: &mut Topology,
    solid: SolidId,
    matrix: &Mat4,
) -> Result<(), OperationsError>
Expand description

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

The transform matrix must be non-degenerate (non-zero determinant). All unique vertices reachable from the solid’s shells are transformed, NURBS edge curves and face surfaces have their control points updated, and all planar face normals are updated using the inverse transpose.

§Errors

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