decimMesh.mesh3d: Decimates a Mesh

Description Usage Arguments Details Value See Also

View source: R/utils_mesh.R

Description

Wrapper for the vcgQEdecim function making additionnal mesh cleaning needed for digitMesh. Additionally to the vcgQEdecim function, this function transfers vertex colors (if any) from the original mesh to the decimated one.

Usage

1
2
## S3 method for class 'mesh3d'
decimMesh(M, tarface = 15000, silent = FALSE, ...)

Arguments

M

A mesh3d object.

tarface

An integer numerical value for the targetted number of faces for decimation (if superior or equal to the number of faces in M, then no decimation is performed).

silent

A logical value indicating if console output should be issued once the calls of vcgQEdecim, vcgUpdateNormals and vcgClean are done.

...

Optional arguments for vcgQEdecim.

Details

This function decimates a given mesh M with vcgQEdecim, then updates mesh normals, removes non manifold faces in the decimated mesh and transfers vertex colors (if any) from the original mesh to the decimated one (done firstly by converting vertex colors from the original mesh to face colors, and then by computing the correspondence among vertices from the decimated mesh to the given one by means of the vcgClostKD function).

Value

A decimated mesh3d object.

See Also

decimMesh.character.


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