View source: R/AutoAdjust.2d.R
AutoAdjust.2d | R Documentation |
Allows for automatic refinement of the triangular mesh generated based on given parameters. Will remove elements that are outside the margin of the geometry.
AutoAdjust.2d(meshP, meshT, edge, centroid, AspectR, AR)
meshP |
Matrix (2 x n) containing coordinate points of the mesh nodes. |
meshT |
Matrix (3 x n) containing the number of the coordinate point that forms a given triangle within the mesh. |
edge |
Coordinate points of the initial geometry. |
centroid |
Matrix (2 x n) of triangle elements. |
AspectR |
Aspect ratio of each triangle element. |
AR |
maximum desired aspect ratio, numeric value. |
Generates new mesh and centroid tables
Meshpts |
Includes both new mesh coordinate points and triangulation of points. |
Centroids |
Centroid positions for each triangle element. |
data(triMesh) data(polyshape) data(dime) meshP = triMesh$MeshPts$p meshT = triMesh$MeshPts$T edge = polyshape$Line centroid = triMesh$Centroids AspectR = dime$AspectRatio AR = 10 auto = AutoAdjust.2d(meshP, meshT, edge, centroid, AspectR, AR)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.