Skip to content

stla/cgalMeshes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 16, 2024
9480a9e · May 16, 2024
Oct 29, 2022
May 16, 2024
Aug 7, 2023
Aug 7, 2023
May 16, 2024
May 16, 2024
May 16, 2024
Jun 21, 2023
Dec 18, 2023
Jun 21, 2023
May 16, 2024
May 16, 2024
May 16, 2024
Jun 16, 2023
Oct 28, 2022
Oct 28, 2022
Oct 28, 2022
Jun 21, 2023

Repository files navigation

cgalMeshes

R6 based utilities for 3D meshes.

R-CMD-check R-CMD-check-valgrind

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.