Learn R Programming

⚠️There's a newer version (0.5.1) of this package.Take me there.

geometry (version 0.4.7)

Mesh Generation and Surface Tessellation

Description

Makes the 'Qhull' library 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.

Copy Link

Version

Install

install.packages('geometry')

Monthly Downloads

18,987

Version

0.4.7

License

GPL (>= 3)

Maintainer

David Sterratt

Last Published

February 3rd, 2023

Functions in geometry (0.4.7)

pol2cart

Transform polar or cylindrical coordinates to Cartesian coordinates.
entry.value

Retrieve or set a list of array element values
mesh.drectangle

Rectangle distance function
mesh.diff

Difference, union and intersection operation on two regions
polyarea

Determines area of a polygon by triangle method.
tsearch

Search for the enclosing Delaunay convex hull
tetramesh

Render tetrahedron mesh (3D)
to.mesh3d

Convert convhulln object to RGL mesh
trimesh

Display triangles mesh (2D)
matmax

Row-wise matrix functions
surf.tri

Find surface triangles from tetrahedral mesh
mesh.dcircle

Circle distance function
extprod3d

Compute external- or `cross'- product of 3D vectors.
tsearchn

Search for the enclosing Delaunay convex hull
mesh.dsphere

Sphere distance function
mesh.hunif

Uniform desired edge length
feasible.point

Find point in intersection of convex hulls
halfspacen

Compute halfspace intersection about a point
sph2cart

Transform spherical coordinates to Cartesian coordinates
rbox

Generate various point distributions
dot

Compute the dot product of two vectors
cart2pol

Transform Cartesian coordinates to polar or cylindrical coordinates.
bary2cart

Conversion of Barycentric to Cartesian coordinates
cart2bary

Conversion of Cartesian to Barycentric coordinates.
cart2sph

Transform Cartesian to spherical coordinates
Unique

Extract Unique Rows
convhulln

Compute smallest convex hull that encloses a set of points
delaunayn

Delaunay triangulation in N dimensions
distmesh2d

A simple mesh generator for non-convex regions
distmeshnd

A simple mesh generator for non-convex regions in n-D space
inhulln

Test if points lie in convex hull
intersectn

Compute convex hull of intersection of two sets of points