# MeshGeometry¶

class dolfin.cpp.mesh.MeshGeometry(*args)

Bases: object

• MeshGeometry()

Create empty set of coordinates

• MeshGeometry(geometry)

Copy constructor

degree()

Return polynomial degree of coordinate field

dim()

Return Euclidean dimension of coordinate system

get_entity_index()

Get the index for an entity point in coordinates

hash()

Hash of coordinate values

Returns
int
A tree-hashed value of the coordinates over all MPI processes
init()

Initialize coordinate list to given dimension and degree

init_entities()

Initialise entities. To be called after init

num_entity_coordinates()

Get the number of coordinate points per entity for this degree

num_points()

Return the total number of points in the geometry, located on any entity

num_vertices()

Return the number of vertex coordinates

point()

Return coordinate with local index n as a 3D point value

point_coordinates()
set()

Set value of coordinate

size()

Return number of coordinates

str()

Return informal string representation (pretty-print)

thisown

The membership flag

vertex_coordinates()
x()

• x(n, i)

Return value of coordinate with local index n in direction i

• x(n)

Return array of values for coordinate with local index n

• x()

Return array of values for all coordinates

• x()

Return array of values for all coordinates