Check for normalized UV channels
Use this feature to check if the UV coordinates of a 3D mesh are normalized, ensuring they fall within the standard 0 to 1 range for proper texture mapping.
Read time 1 minuteLast updated 19 hours ago
API function: polygonal.hasNormalizedUVs(mesh, channel) -> bool Returns true if the provided UV channel is defined and if all its texture coordinates belongs to the range [0, 1].
Parameters
- mesh: the mesh for which UV channel must be checked.
- uvChannel (default -1): the UV channel to verify. If -1 is provided, the function returns true if all UV channels are normalized.