26#ifndef TESSERACT_GEOMETRY_MESH_MATERIAL_H
27#define TESSERACT_GEOMETRY_MESH_MATERIAL_H
32#include <Eigen/Geometry>
63 using Ptr = std::shared_ptr<MeshMaterial>;
64 using ConstPtr = std::shared_ptr<const MeshMaterial>;
75 double metallicFactor,
76 double roughnessFactor,
77 Eigen::Vector4d emissiveFactor)
141 using Ptr = std::shared_ptr<MeshTexture>;
142 using ConstPtr = std::shared_ptr<const MeshTexture>;
151 std::shared_ptr<const tesseract_common::VectorVector2d> uvs)
170 const std::shared_ptr<const tesseract_common::VectorVector2d>&
getUVs() {
return uvs_; }
173 std::shared_ptr<const tesseract_common::VectorVector2d>
uvs_;
std::shared_ptr< Resource > Ptr
Definition: resource_locator.h:101
Represents material information extracted from a mesh file.
Definition: mesh_material.h:61
double roughness_factor_
Definition: mesh_material.h:121
std::shared_ptr< const MeshMaterial > ConstPtr
Definition: mesh_material.h:64
Eigen::Vector4d getBaseColorFactor() const
Get the base color of the mesh.
Definition: mesh_material.h:91
double getRoughnessFactor() const
Get the Roughness Factor of the mesh (PBR parameter)
Definition: mesh_material.h:105
double metallic_factor_
Definition: mesh_material.h:120
Eigen::Vector4d base_color_factor_
Definition: mesh_material.h:119
MeshMaterial(Eigen::Vector4d baseColorFactor, double metallicFactor, double roughnessFactor, Eigen::Vector4d emissiveFactor)
Construct a new MeshMaterial.
Definition: mesh_material.h:74
Eigen::Vector4d getEmissiveFactor() const
Get the emissive factor of the mesh.
Definition: mesh_material.h:115
double getMetallicFactor() const
Get the Metallic Factor of the mesh (PBR parameter)
Definition: mesh_material.h:98
std::shared_ptr< MeshMaterial > Ptr
Definition: mesh_material.h:63
Eigen::Vector4d emissive_factor_
Definition: mesh_material.h:122
Represents a texture and UV coordinates extracted from a mesh file.
Definition: mesh_material.h:139
const std::shared_ptr< const tesseract_common::VectorVector2d > & getUVs()
Get the texture UV coordinates.
Definition: mesh_material.h:170
MeshTexture(tesseract_common::Resource::Ptr texture_image, std::shared_ptr< const tesseract_common::VectorVector2d > uvs)
Construct a new MeshTexture.
Definition: mesh_material.h:150
tesseract_common::Resource::Ptr getTextureImage() const
Get the texture image.
Definition: mesh_material.h:163
std::shared_ptr< MeshTexture > Ptr
Definition: mesh_material.h:141
tesseract_common::Resource::Ptr texture_image_
Definition: mesh_material.h:176
std::shared_ptr< const tesseract_common::VectorVector2d > uvs_
Definition: mesh_material.h:173
std::shared_ptr< const MeshTexture > ConstPtr
Definition: mesh_material.h:142
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Definition: macros.h:71
Definition: create_convex_hull.cpp:36
Definition: geometry.h:39
Locate and retrieve resource data.