surfaceVoronoi: Computes the voronoi diagram of points in a curved surface.

Description Usage Arguments Value

View source: R/surf_voronoi.R

Description

Computing voronoi diagrams for 2D points is simple if libraries are available. If the points are contrained in a curved 3D surface, things are a little more complicated. This function projects the surface on a plane computes the voronoi diagram in this plane and then projects the resulting polygons back to 3D.

Usage

1
2
  surfaceVoronoi(m, pts, basefun = getBase,
    ptsnames = NULL)

Arguments

m

Polygonal 3D mesh.

x

X Coordinate of the points that will be used to compute the Voronoi diagram

y

Y Coordinate of the points that will be used to compute the Voronoi diagram

z

Z Coordinate of the points that will be used to compute the Voronoi diagram

pnames

Names of each point.

basefun

Function used to obtain the projection plane.

ptsnames

Names of the points.

Value

A list containing 3D polygonal meshes of the influence area for each node.


tunelipt/model3d documentation built on Nov. 5, 2019, 10:59 a.m.