splinepy.helpme.reparametrize.permute_parametric_axes#
- splinepy.helpme.reparametrize.permute_parametric_axes(spline, permutation_list, inplace=True)[source]#
Permutates the parametric dimensions
This function can be used, e.g., to interchange the parametric dimensions xi and eta in order to have them in the right orientation (applications in boundary condition definition or mfem export)
- Parameters:
spline (Spline)
permutation_list (list) – New order of parametric dimensions
inplace (bool) – Default is True. If True, modifies spline inplace, else, returns a modified_spline.
- Returns:
modified_spline – spline with reordered parametric dimensions. iff inplace=True.
- Return type:
type(spline)