Learn R Programming

cgalMeshes

R6 based utilities for 3D meshes.

Geodesic distance

Clipping

Fairing

Decomposition into convex parts

Convex hull

Subdivision methods

Hole filling

Boolean operations

Intersection

Difference

Union

Advanced front surface reconstruction

Stanford bunny:

Stanford dragon:

Dummy head:

Skull:

Minkowski addition

Octahedron + sphere:

Tetrahedron + truncated icosahedron:

Septuaginta + great stellated dodecahedron:

Stanford bunny + sphere:

Other tools

Volume, area, centroid, distance between a point and a mesh, connected components, Haussdorf distance, random sampling on the surface of a mesh.

More features

There are more features in the github branch, to install with:

remotes::install_github("stla/cgalMeshes@github", dependencies = TRUE, build_vignettes = TRUE)

Poisson reconstruction

Spider cage:

Here is a series of three images which show the effect of this spacing parameter (0.05, 0.02, 0.005):

Stanford bunny:

Stanford dragon:

Shape smoothing

Hopf torus:

Stanford bunny:

Surface mesh parameterization

Blog posts

License

This package is provided under the GPL-3 license but it uses the C++ library CGAL. If you wish to use CGAL for commercial purposes, you must obtain a license from the GeometryFactory.

Copy Link

Version

Install

install.packages('cgalMeshes')

Monthly Downloads

24

Version

2.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Stc3<a9>phane Laurent

Last Published

June 24th, 2023

Functions in cgalMeshes (2.2.0)

crossProduct

Cross product
cyclideMesh

Cyclide mesh
SolidMobiusStrip

A point cloud of a solid Möbius strip with noise
isoCuboidMesh

Iso-oriented cuboid
parametricMesh

Mesh of a parametric surface
MinkowskiSum

Minkowski addition
pentagrammicPrism

A mesh of a pentagrammic prism
cgalMesh

R6 class to represent a CGAL mesh
revolutionMesh

Surface of revolution
plotEdges

Plot some edges
exteriorEdges

Exterior edges of a mesh
sphereMesh

Sphere mesh
AFSreconstruction

Advancing front surface reconstruction
gyroTriangle

Hyperbolic triangle
SSSreconstruction

Scale-space surface reconstruction
HopfTorusMesh

Hopf torus mesh
sphericalTriangle

Spherical triangle
torusMesh

Torus mesh
tetrahedraCompound

Compound of five tetrahedra
truncatedIcosahedron

A mesh of the truncated icosahedron