https://github.com/stla/cgalmeshes
R6 based utilities for 3D meshes.
https://github.com/stla/cgalmeshes
cgal computational-geometry mesh r r6 rcpp
Last synced: 9 months ago
JSON representation
R6 based utilities for 3D meshes.
- Host: GitHub
- URL: https://github.com/stla/cgalmeshes
- Owner: stla
- Created: 2022-10-28T17:24:53.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-16T09:18:26.000Z (over 1 year ago)
- Last Synced: 2025-03-28T03:24:36.482Z (10 months ago)
- Topics: cgal, computational-geometry, mesh, r, r6, rcpp
- Language: C++
- Homepage:
- Size: 83.1 MB
- Stars: 16
- Watchers: 5
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
Awesome Lists containing this project
README
# cgalMeshes
R6 based utilities for 3D meshes.
[](https://github.com/stla/cgalMeshes/actions/workflows/R-CMD-check.yaml)
[](https://github.com/stla/cgalMeshes/actions/workflows/R-CMD-check-valgrind.yaml)
### 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:
```r
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
- ['CGAL' meets 'R6': the 'cgalMeshes' package](https://laustep.github.io/stlahblog/posts/cgalMeshes.html)
- [Update of 'cgalMeshes'](https://laustep.github.io/stlahblog/posts/cgalMeshes2.html)
- [3D alpha wrapping with R](https://laustep.github.io/stlahblog/posts/alphaWrapping.html)
## 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](https://geometryfactory.com).