Applies a planar UV mapping to a mesh based on a spherical direction from the origin.

add_sphere_uv_mesh(mesh, origin = c(0, 0, 0), override_existing = FALSE)

Arguments

mesh

The mesh to which the UV mapping will be applied.

origin

Default c(0, 0, 0). A vector specifying the origin to apply spherical UV coordinates.

override_existing

Default FALSE. Specifies whether existing UV coordinates should be overridden.

Value

Modified mesh with added UV mapping.

Examples

if(run_documentation()) {
#Let's construct a mesh from the volcano dataset

}
#> NULL