Learn R Programming

FEA (version 0.0.2)

triangulate0.2d: triangulate0.2d

Description

Triangulation by Delaunayn algorithm. Automatically generates a triangular mesh for a geometry containing nodal points.

Usage

triangulate0.2d(u0, edge)

Value

Produces data for generated mesh.

Meshpts

Includes both new mesh coordinate points and triangulation of points.

Centroids

Centroid positions for each triangle element.

Arguments

u0

Matrix (2 x n) of node coordinates within the geometry.

edge

Matrix (2 x n) of coordinate points on the perimeter of the geometry.

Examples

Run this code
data(cleanpoly)
data(polyshape)

u0 = cleanpoly$CleanedNodes
edge = polyshape$Line

triMesh = triangulate0.2d(u0, edge)

Run the code above in your browser using DataLab