Package: SurfaceMesh 0.1.2

Daniel Wollschlaeger

SurfaceMesh: 3D Surface Meshes Based on 'CGAL'

Processing of 3D surface meshes based on the 'C++' library 'CGAL' (Computational Geometry Algorithms Library, <https://www.cgal.org/>). Reads and writes common file formats for meshes and polygon soups. Supports mesh repair, remeshing, subdivision, Boolean operations on bounded volumes, outlier removal, surface reconstruction, (optimal) bounding box, bounding sphere, bounding ellipsoid, convex hull, vertex normals, surface distance metrics (such as Hausdorff), volume-overlap similarity measures JSC (Jaccard Similarity Coefficient) and DSC (Dice Similarity Coefficient). Adapts code from packages 'Boov' and 'cgalMeshes' developed by Stephane Laurent.

Authors:Daniel Wollschlaeger [aut, cre], Stephane Laurent [aut], The CGAL Project [cph]

SurfaceMesh_0.1.2.tar.gz
SurfaceMesh_0.1.2.zip(r-4.7-x86_64)SurfaceMesh_0.1.2.zip(r-4.7-arm64)SurfaceMesh_0.1.2.zip(r-4.6-x86_64)SurfaceMesh_0.1.2.zip(r-4.6-arm64)
SurfaceMesh_0.1.2.tar.gz(r-4.7-arm64)SurfaceMesh_0.1.2.tar.gz(r-4.7-x86_64)SurfaceMesh_0.1.2.tar.gz(r-4.6-arm64)SurfaceMesh_0.1.2.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
SurfaceMesh/json (API)

# Install 'SurfaceMesh' in R:
install.packages('SurfaceMesh', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/dwoll/surfacemesh/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

cpp

3.00 score 56 exports 32 dependencies

Last updated from:66d9c47fde. Checks:9 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK795
linux-devel-x86_64OK582
source / vignettesOK1530
linux-release-arm64OK744
linux-release-x86_64OK903
windows-devel-arm64OK794
windows-devel-x86_64OK1177
windows-release-arm64OK767
windows-release-x86_64OK1084
wasm-releaseFAIL298

Exports:addVertexNormalsalphaWrapboolDifferenceboolIntersectionboolUniondoesBoundVolumedoesSelfIntersectfillBoundaryHolesgetAreagetAverageSpacinggetBoundingBoxgetBoundingEllgetBoundingSpheregetCentroidgetConvexHullgetDCOMgetDistancegetHausdorffgetJSCDSCgetNormalsFungetSurfaceDistgetVertexNormalsgetVolumehasGarbageisClosedisOutwardOrientedisQuadisTriangleisValidmakeMeshmakeMeshValidmeshEllipsoidmeshIsoCuboidmeshSphereorientToBoundVolumeplotEdgesreadMeshreconstructAFSreconstructPoissonreconstructSSSremeshACVDremeshDelaunayremeshIsotropicremeshSimplifyremeshSmoothAngleremeshSmoothShaperemeshSmoothTangentRelaxremoveOutliersremoveSelfIntersectionsreverseFaceOrientationssamplePointssetVertexNormalssubdividetoRGLtriangulateMeshwriteMesh

Dependencies:base64encBHbslibcachemclidigestevaluatefastmapfontawesomefshighrhtmltoolshtmlwidgetsjquerylibjsonliteknitrlifecyclemagrittrmemoisemimeR6rappdirsRcppRcppCGALRcppEigenrglrlangrmarkdownsasstinytexxfunyaml

SurfaceMesh: 3D Surface Meshes Based on CGAL
Introduction | Background | Create Surface Meshes | Read Mesh / Polygon Soup Files | Create Surface Mesh Based on mesh3d Object | Triangulate | Vertex normals | Mesh Characteristics | Check Mesh Status | Check and Change Mesh Orientation | Measurements | Centroid (Center of Mass) | Surface Area | Volume | Average Spacing | Mesh Repair | Fill Boundary Holes | Remove Self-Intersections | Randomly Sample Points on a Mesh | Boolean Mesh Operations on Bounded Volumes | Union | Difference | Intersection | Remeshing | Approximated centroidal Voronoi diagram remeshing | Surface Delaunay | Isotropic | Triangulated Surface Mesh Simplification | Smoothing | Smooth Shape | Angle Smoothing | Tangential Relaxation | Subdivision | Catmull-Clark | Doo-Sabin | Loop | Sqrt3 | Surface Reconstruction | Removing outliers from point cloud | AFS | SSS | Poisson | Alpha Wrapping | Bounding Shapes | Axis-parallel Bounding Box | Optimal (Oriented) Bounding Box | Bounding Sphere | Bounding Ellipse | Convex Hull | Distace and Agreement Measures | Euclidean Distance from Points to a Mesh | Distance Between the Two Respective Centers of Mass (DCOM) | Surface Distance Between two Meshes | Hausdorff Distance | Average symmetric surface distance (ASSD) and Root Mean Squared Error (RMSE) | Volume-Overlap Based Similarity Measures

Last update: 2026-11-17
Started: 2026-11-17

SurfaceMesh Examples
Geometric Meshes | Dupin Cyclide | Entzensberger Star | Hopf Torus | ICN5D Eight | Oloid | OrthoCircle | Pentagrammic Prism | Septuaginta | Solid Möbius strip | Sphere | Spider Cage | Toroidal Helix | Torus | Truncated Icosahedron | Tubular Knot | Corner | Human Heart Contoured from CT Images | Heart by Observer 1 | Heart by Observer 2

Last update: 2026-11-17
Started: 2026-11-17

Readme and manuals

Help Manual

Help pageTopics
Add vertex normals to a meshaddVertexNormals
3D alpha wrappingalphaWrap
Difference between two meshesboolDifference
Intersection of meshesboolIntersection
Union of meshesboolUnion
Mesh of a Dupin cyclidedataCyclide
Mesh of an Entzensberger stardataEntzenStar
Mesh of a human heart from a CT scandataHeart1
Mesh of a human heart from a CT scandataHeart2
Mesh of a Hopf torusdataHopfTorus
Mesh of an ICN5D eightdataICN5Deight
Mesh of an oloiddataOloid
Mesh of an ortho circledataOrthoCircle
Mesh of a pentagrammic prismdataPentaPrism
Mesh of a septuagintadataSeptuaginta
Mesh of a solid Mobius stripdataSolidMobiusStrip
Mesh of a spheredataSphere
Mesh of a spider cagedataSpiderCage
Mesh of a toroidal helixdataToroHelix
Mesh of a torusdataTorus
Mesh of the truncated icosahedrondataTruncIcosahedron
Mesh of a tubular knotdataTubularKnot
Does mesh bound a volume?doesBoundVolume
Does mesh self intersect?doesSelfIntersect
Fill boundary holesfillBoundaryHoles
Get mesh areagetArea
Compute average spacing of input pointsgetAverageSpacing
Get bounding box (axis-parallel or oriented)getBoundingBox
Bounding ellipsoid of a set of 3D pointsgetBoundingEll
Bounding sphere of a set of 3D pointsgetBoundingSphere
Get mesh centroid (center of mass)getCentroid
Convex hull of a set of 3D pointsgetConvexHull
Euclidean distance between center of mass of two meshesgetDCOM
Get distance from points to a meshgetDistance
Hausdorff distance between two meshes (full or quantile)getHausdorff
Jaccard Similarity Coefficient and Dice Similarity CoefficientgetJSCDSC
Function to generate normals for a point cloudgetNormalsFun
Several distance metrics between two meshesgetSurfaceDist
Get vertex normals of a meshgetVertexNormals
Get mesh volumegetVolume
Does mesh have garbage?hasGarbage
Is mesh closed?isClosed
Is mesh outward oriented?isOutwardOriented
Is mesh a quad mesh?isQuad
Is mesh a triangle mesh?isTriangle
Is mesh a valid mesh?isValid
Make a 3D meshmakeMesh
Make a 3D mesh assuming valid inputmakeMeshValid
Ellipsoid meshmeshEllipsoid
Iso-oriented cuboid meshmeshIsoCuboid
Sphere meshmeshSphere
Orient mesh to bound a volumeorientToBoundVolume
Plot some edgesplotEdges
Read a mesh filereadMesh
Advancing front surface reconstructionreconstructAFS
Poisson surface reconstructionreconstructPoisson
Scale-space surface reconstructionreconstructSSS
Approximated centroidal Voronoi diagram remeshingremeshACVD
Surface Delaunay remeshingremeshDelaunay
Isotropic remeshingremeshIsotropic
Triangulated surface mesh simplificationremeshSimplify
Smoothing by angle optimizationremeshSmoothAngle
Smooth shaperemeshSmoothShape
Smoothing by tangential relaxationremeshSmoothTangentRelax
Remove outliers from 3D point cloudremoveOutliers
Remove self intersectionsremoveSelfIntersections
Reverse orientation of mesh facesreverseFaceOrientations
Sample vertices on meshsamplePoints
Assign normal vectors to mesh verticessetVertexNormals
Subdivision and deformationsubdivide
Conversion to 'rgl' meshtoRGL
Triangulate meshtriangulateMesh
Export mesh to a filewriteMesh