splinepy.multipatch.Multipatch.set_interface_orientations#
- Multipatch.set_interface_orientations(interface_orientations)[source]#
Interface orientations are usually computed using the jacobian at face centers. This is not always possible, e.g., if the spline is representing a scalar field on a geometry. This function can be used to manually set the orientations to prepare the spline for export.
Notes
The interfaces must be set before the orientations, as the interface orientations count the interfaces between splines to ensure they match. This function does not include any checks to verify whether the interfaces exist, since performing such a check would trigger their computation — which might not be possible for scalar splines (the main intended use case for this function).
- Parameters:
interface_orientations (np.array (np.int64)) – interface orientations between patches shape {n_interfaces , 4 + 2 * para_dim}
- Return type:
None