Learn R Programming

FEA (version 0.0.2)

SinglePoly.2d: SinglePoly.2d

Description

Generates a mesh for polygon with a single continuous geometry

Usage

SinglePoly.2d(x, y, ptDS, ptDL)

Value

Coordinate points of nodes distributed within and on the line of a given geometry.

AllCoords

all coordinate points distributed across the geometry.

Within

all coordinate points within the geometry ONLY.

Line

all coordinate points that lay on the perimeter of the geometry ONLY.

Arguments

x

X-coordinates for geometry.

y

Y-coordinates for geometry.

ptDS

Density of points desired within the geometry.

ptDL

Density of points desired at the perimeter of the geometry.

Examples

Run this code
data(Cart)

x = Cart[,1]
y= Cart[,2]
ptDS = 30
ptDL = 20

polyshape = SinglePoly.2d(x, y, ptDS, ptDL)

Run the code above in your browser using DataLab