quad2trimesh: converts a mesh containing quadrangular faces into one only...

View source: R/quad2trimesh.r

quad2trimeshR Documentation

converts a mesh containing quadrangular faces into one only consisting of triangles

Description

converts a mesh containing quadrangular faces into one only consisting of triangles

Usage

quad2trimesh(mesh, updateNormals = TRUE)

Arguments

mesh

object of class "mesh3d"

updateNormals

logical: request recalculation of (angle weighted) vertex normals.

Value

triangular mesh with updated normals

Examples


Sigma <- diag(3:1) #create a 3D-covariance matrix
require(rgl)
quadmesh <- ellipse3d(Sigma)##create quadmesh
trimesh <- quad2trimesh(quadmesh)# convert to trimesh



Morpho documentation built on June 22, 2024, 7:19 p.m.