pysdic.Mesh.uvmap#
- property Mesh.uvmap: ndarray | None#
[Get or Set] The UV mapping of each element in the mesh (only for surfacique meshes \(K=2\)).
The UV mapping is stored as a numpy ndarray of shape (\(N_e\), 2 * \(N_{vpe}\)), where \(N_e\) is the number of elements and \(N_{vpe}\) is the number of vertices per element.
The values correspond to the UV coordinates of the \(N_{vpe}\) vertices of the element: \((u_1, v_1, u_2, v_2, u_3, v_3, ..., u_{N_{vpe}}, v_{N_{vpe}})\).
Note
The UV coordinates are stored as an element property of the mesh under the key “uvmap”.
- Parameters:
value (ArrayLike, optional) – A numpy ndarray of shape (\(N_e\), 2 * \(N_{vpe}\)) to set as the UV mapping.
- Returns:
An array of shape (\(N_e\), 2 * \(N_{vpe}\)) where \(N_e\) is the number of elements. Or None if not set.
- Return type:
numpy.ndarrayor None