Learn R Programming

Morpho (version 2.12)

quad2trimesh: 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)

Value

triangular mesh with updated normals

Arguments

mesh

object of class "mesh3d"

updateNormals

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

Examples

Run this code

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


Run the code above in your browser using DataLab