cellcomplex.property_topomesh.analysis.compute_topomesh_cell_property_from_faces

cellcomplex.property_topomesh.analysis.compute_topomesh_cell_property_from_faces(topomesh, property_name, reduce='mean', weighting='area', verbose=False)[source]

Compute a property on degree 3 using the same property defined at degree 2.

The cell property is computed by averaging or summing the properties of its border faces, weighting them differently according to the chosen method.

Parameters
  • topomesh (cellcomplex.property_topomesh.PropertyTopomesh) – The structure on which to compute the property.

  • property_name (str) – The name of the property to compute (must be already computed on faces).

  • reduce (str) –

    The way weighted face properties are combined to compute the cell property (default is mean):
    • mean: the cell property is the weighted average of face properties

    • sum: the cell property is the weighted sum of face properties

  • weighting (str) –

    The way weights are assigned to each face to compute the property (default is area):
    • uniform: all the faces have the same weight (1)

    • area: the weight on the faces is equal to their area

Returns

Return type

None

Note

The PropertyTopomesh passed as argument is updated.