get_mesh_vertex_coords_with_attribute

compas_slicer.utilities.get_mesh_vertex_coords_with_attribute(mesh, attr, value)[source]

Finds the coordinates of all the vertices that have an attribute with key=attr that equals the value.

Parameters:
  • mesh (:class: ‘compas.datastructures.Mesh’)

  • attr (str)

  • value (anything that can be stored into a dictionary)

Returns:

list, (class: ‘compas.geometry.Point’) – the closest vertex key