Package: geometry 0.5.0

geometry: Mesh Generation and Surface Tessellation

Makes the 'Qhull' library <http://www.qhull.org> available in R, in a similar manner as in Octave and MATLAB. Qhull computes convex hulls, Delaunay triangulations, halfspace intersections about a point, Voronoi diagrams, furthest-site Delaunay triangulations, and furthest-site Voronoi diagrams. It runs in 2D, 3D, 4D, and higher dimensions. It implements the Quickhull algorithm for computing the convex hull. Qhull does not support constrained Delaunay triangulations, or mesh generation of non-convex objects, but the package does include some R functions that allow for this.

Authors:Jean-Romain Roussel [cph, ctb], C. B. Barber [cph], Kai Habel [cph, aut], Raoul Grasman [cph, aut], Robert B. Gramacy [cph, aut], Pavlo Mozharovskyi [cph, aut], David C. Sterratt [cph, aut, cre]

geometry_0.5.0.tar.gz
geometry_0.5.0.zip(r-4.5)geometry_0.5.0.zip(r-4.4)geometry_0.5.0.zip(r-4.3)
geometry_0.5.0.tgz(r-4.4-x86_64)geometry_0.5.0.tgz(r-4.4-arm64)geometry_0.5.0.tgz(r-4.3-x86_64)geometry_0.5.0.tgz(r-4.3-arm64)
geometry_0.5.0.tar.gz(r-4.5-noble)geometry_0.5.0.tar.gz(r-4.4-noble)
geometry_0.5.0.tgz(r-4.4-emscripten)geometry_0.5.0.tgz(r-4.3-emscripten)
geometry.pdf |geometry.html
geometry/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/davidcsterratt/geometry/issues

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

On CRAN:

cpp

12.49 score 16 stars 136 packages 736 scripts 16k downloads 11 mentions 38 exports 6 dependencies

Last updated 4 months agofrom:31f951ce1c. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 18 2024
R-4.5-win-x86_64OKDec 18 2024
R-4.5-linux-x86_64OKDec 18 2024
R-4.4-win-x86_64OKDec 18 2024
R-4.4-mac-x86_64OKDec 18 2024
R-4.4-mac-aarch64OKDec 18 2024
R-4.3-win-x86_64OKDec 18 2024
R-4.3-mac-x86_64OKDec 18 2024
R-4.3-mac-aarch64OKDec 18 2024

Exports:bary2cartcart2barycart2polcart2sphconvhullndelaunayndistmesh2ddistmeshnddotentry.valueentry.value<-extprod3dfeasible.pointhalfspaceninhullnintersectnmatmaxmatminmatordermatsortmesh.dcirclemesh.diffmesh.drectanglemesh.dspheremesh.hunifmesh.intersectmesh.unionpol2cartpolyarearboxsph2cartsurf.tritetrameshto.mesh3dtrimeshtsearchtsearchnUnique

Dependencies:abindlinproglpSolvemagicRcppRcppProgress

Qhull examples

Rendered fromqhull-eg.Rnwusingutils::Sweaveon Dec 18 2024.

Last update: 2019-02-12
Started: 2019-02-11

Readme and manuals

Help Manual

Help pageTopics
Conversion of Barycentric to Cartesian coordinatesbary2cart
Conversion of Cartesian to Barycentric coordinates.cart2bary
Transform Cartesian coordinates to polar or cylindrical coordinates.cart2pol
Transform Cartesian to spherical coordinatescart2sph
Compute smallest convex hull that encloses a set of pointsconvhulln
Delaunay triangulation in N dimensionsdelaunayn
A simple mesh generator for non-convex regionsdistmesh2d
A simple mesh generator for non-convex regions in n-D spacedistmeshnd
Compute the dot product of two vectorsdot
Retrieve or set a list of array element valuesentry.value entry.value<-
Compute external- or 'cross'- product of 3D vectors.extprod3d
Find point in intersection of convex hullsfeasible.point
Compute halfspace intersection about a pointhalfspacen
Test if points lie in convex hullinhulln
Compute convex hull of intersection of two sets of pointsintersectn
Row-wise matrix functionsmatmax matmin matorder matsort
Circle distance functionmesh.dcircle
Difference, union and intersection operation on two regionsmesh.diff mesh.intersect mesh.union
Rectangle distance functionmesh.drectangle
Sphere distance functionmesh.dsphere
Uniform desired edge lengthmesh.hunif
Transform polar or cylindrical coordinates to Cartesian coordinates.pol2cart
Determines area of a polygon by triangle method.polyarea
Generate various point distributionsrbox
Transform spherical coordinates to Cartesian coordinatessph2cart
Find surface triangles from tetrahedral meshsurf.tri
Render tetrahedron mesh (3D)tetramesh
Convert convhulln object to RGL meshto.mesh3d
Display triangles mesh (2D)trimesh
Search for the enclosing Delaunay convex hulltsearch
Search for the enclosing Delaunay convex hulltsearchn
Extract Unique RowsUnique