Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

vcgPlatonic

create platonic objects as triangular meshes


Description

create platonic objects as triangular meshes

Usage

vcgSphere(subdivision = 3, normals = TRUE)

vcgSphericalCap(angleRad = pi/2, subdivision = 3, normals = TRUE)

vcgTetrahedron(normals = TRUE)

vcgDodecahedron(normals = TRUE)

vcgOctahedron(normals = TRUE)

vcgIcosahedron(normals = TRUE)

vcgHexahedron(normals = TRUE)

vcgSquare(normals = TRUE)

vcgBox(mesh = vcgSphere(), normals = TRUE)

vcgCone(r1, r2, h, normals = TRUE)

Arguments

subdivision

subdivision level for sphere (the larger the denser the mesh will be)

normals

if TRUE vertex normals are calculated

angleRad

angle of the spherical cap

mesh

mesh to take the bounding box from

r1

radius1 of the cone

r2

radius2 of the cone

h

height of the cone


Rvcg

Manipulations of Triangular Meshes Based on the 'VCGLIB' API

v0.19.2
GPL (>= 2) | file LICENSE
Authors
Stefan Schlager [aut, cre, cph], Girinon Francois [ctb]
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.