Template Struct MaterializerResult

Struct Documentation

template<typename BaseVecT>
struct MaterializerResult

Result struct for the materializer.

This struct is a wrapper type for the result of the materializer. It contains a map from cluster to material and may contain optional texture data

Public Functions

inline MaterializerResult(DenseClusterMap<Material> clusterMaterials)

Constructor.

Parameters:

clusterMaterials – The cluster material map

inline MaterializerResult(DenseClusterMap<Material> clusterMaterials, StableVector<TextureHandle, Texture> textures, SparseVertexMap<ClusterTexCoordMapping> vertexTexCoords, std::unordered_map<BaseVecT, std::vector<float>> keypoints)

Constructor.

Parameters:
  • clusterMaterials – The cluster material map

  • textures – The stable vector of textures

  • vertexTexCoords – The vertex texture coordinates

  • keypoints – The keypoints

Public Members

DenseClusterMap<Material> m_clusterMaterials

Materials for each cluster.

boost::optional<StableVector<TextureHandle, Texture>> m_textures

A stable vector of textures. each texture is identified by a tex.-handle.

boost::optional<SparseVertexMap<ClusterTexCoordMapping>> m_vertexTexCoords

Cluster texture coordinates for each vertex.

boost::optional<std::unordered_map<BaseVecT, std::vector<float>>> m_keypoints

Keypoints.