ForceVolMesh.add_vertex

ForceVolMesh.add_vertex(key=None, attr_dict=None, **kwattr)

Add a vertex to the volmesh object.

Parameters
  • key (int, optional) – The vertex identifier.

  • attr_dict (dict[str, Any], optional) – dictionary of vertex attributes.

  • **kwattr (dict[str, Any], optional) – A dictionary of additional attributes compiled of remaining named arguments.

Returns

int – The identifier of the vertex.

Notes

If no key is provided for the vertex, one is generated automatically. An automatically generated key is an integer that increments the highest integer value of any key used so far by 1.

If a key with an integer value is provided that is higher than the current highest integer key value, then the highest integer value is updated accordingly.