colTransf: Transfers Colors between Meshes

Description Usage Arguments Details Value

View source: R/utils_mesh.R

Description

This function transfers vertex colors (if any) from one mesh to a one.

Usage

1
colTransf(M1, M2)

Arguments

M1

A mesh3d object to transfer vertex colors from.

M2

A mesh3d object to transfer vertex colors to.

Details

This function transfers vertex colors (if any) from the original mesh to the decimated one following 2 steps:
- converts of vertex colors from the first mesh M1 to face colors by averaging the colors from the 3 vertices of each face,
- estimates the correspondence among vertices from the second mesh M2 to the first mesh M1 by means of the vcgClostKD function).

Value

A decimated mesh3d object.


morphOptics/digit3DLand documentation built on July 17, 2021, 8:27 p.m.