Template Class PropertyMap

Class Documentation

template<typename HandleT>
class PropertyMap

map between identical properties from different containers

Semantics: Copy from property ‘in’ to property ‘out’. The properties may be from different meshes. output_mesh.property_out[index_out] = input_mesh.property_in[index_in]

becomes: property_map.add(input_mesh.property_in, output_mesh.property_out); property_map.copy(index_in, index_out);

Template Parameters:

HandleT – type of the handle used by the properties

Public Functions

inline void add(const BasePropertyArray *in, BasePropertyArray *out)

Add two properties of the same type to the map.

Parameters:
  • in – The property to copy from

  • out – The property to copy to

inline void copy(HandleT in_handle, HandleT out_handle)

Copy from in_handle in all ‘in’ properties to out_handle in all ‘out’ properties.

Parameters:
  • in_handle – The index in the input properties to copy from

  • out_handle – The index in the output properties to copy to