Learn R Programming

meshsimp (version 0.1.1)

get.mesh.2.5D: Get surface mesh from an object of class RcppSimplification.

Description

Extract the mesh from an object of class RcppSimplification. The mesh is returned as an instance of class mesh.2.5D. The order of the Finite Elements is compliant with the input parameter order.

Usage

get.mesh.2.5D(x, order = 1)

Arguments

x

An object of class RcppSimplification.

order

Either '1' or '2'. It specifies whether each mesh triangle should be represented by \(3\) nodes (the triangle vertices) or by \(6\) nodes (the triangle vertices and midpoints of the triangle edges). These are respectively used for linear (order = 1) and quadratic (order = 2) Finite Elements. Default is order = 1.

Value

A mesh.2.5D object, endowed with the following attributes:

  • nnodes: number of nodes in the mesh;

  • nodes: nnodes-by-3 matrix collecting the coordinates of each vertex;

  • ntriangles: number of triangles in the mesh;

  • triangles: a ntriangles-by-3 (when order = 1) or ntriangles-by-6 (when order = 2) matrix. It specifies the triangles giving the row indices in nodes of the triangles vertices and (when order = 2) also of the triangles edges midpoints;

  • order: either '1' or '2'. It specifies whether each mesh triangle should be represented by \(3\) nodes (the triangle vertices) or by \(6\) nodes (the triangle vertices and midpoints of the triangle edges). These are respectively used for linear (order = 1) and quadratic (order = 2) Finite Elements. Default is order = 1.

See Also

simplify.mesh.2.5D