mesh.Mesh.get_points#
- Mesh.get_points()#
Return the nodal coordinates of the Mesh.
Returns#
CoordsThe coordinates of the nodes that are actually used in the connectivity table. For a compacted Mesh, it is equal to the coords attribute.
Examples#
Create a Mesh with four points and one triangle element of type ‘tri3’. So 1 point is not used.
>>> coords = Coords([[0.0, 0.0, 0.0], ... [1.0, 0.0, 0.0], ... [1.0, 1.0, 0.0], ... [0.0, 1.0, 0.0]]) >>> elems = [[0,1,3]] >>> M = Mesh(coords,elems,eltype='tri3') >>> print(M.get_points()) [[0. 0. 0.] [1. 0. 0.] [0. 1. 0.]]