Learn R Programming

Rvcg (version 0.6-3)

vcgUpdateNormals: update vertex normals of a triangular mesh

Description

update vertex normals of a triangular mesh

Usage

vcgUpdateNormals(mesh, type = 0)

Arguments

mesh
triangular mesh of class 'mesh3d'
type
select the method to compute per-vertex normals: 0=area weighted average of surrounding face normals; 1 = angle weighted vertex normals.

Value

  • mesh with updated/created normals

Examples

Run this code
data(humface)
humface$normals <- NULL # remove normals
humface <- vcgUpdateNormals(humface)

Run the code above in your browser using DataLab