m <- 3
# A square of size 3 with 9 internal squares,
# 25 nodes, 12 edge segments and 36 triangles.
result = squareMesh(m)
pts = result$pts
edg = result$edg
tri = result$tri
# plot the mesh
plotFEM.mesh(pts,tri)
Run the code above in your browser using DataLab