TetrahedronElement.set_material_orientation
- TetrahedronElement.set_material_orientation(primary, secondary=None, origin=None, enforce=True)[source]
Define or override the local material orientation frame.
- Parameters:
- primaryVector | (float,float,float)
Desired local 1-direction (must be non-zero).
- secondaryVector | (float,float,float) | None, optional
Helper direction for local 2-direction (not necessarily orthogonal). If omitted or nearly colinear with
primaryan automatic axis is chosen.- originPoint | None, optional
Origin of the frame. Defaults to centroid of the 4 corner nodes.
- enforcebool, optional
If True raise errors on degeneracy; otherwise fall back to default frame.
- Returns:
- Frame
The resulting local material frame.