Lagrange
MeshInstance< Scalar, Index, Dimension > Struct Template Reference

A single mesh instance in a scene. More...

#include <lagrange/scene/SimpleScene.h>

Public Types

using AffineTransform = Eigen::Transform< Scalar, static_cast< int >(Dimension), Eigen::Affine >
 Affine transformation matrix.
 

Public Attributes

Index mesh_index = invalid<Index>()
 Index of the referenced mesh in the scene.
 
AffineTransform transform = AffineTransform::Identity()
 Instance transformation.
 
std::any user_data = {}
 Opaque user data.
 

Static Public Attributes

static constexpr size_t Dim = Dimension
 Access dimension from outside the class.
 

Detailed Description

template<typename Scalar, typename Index, size_t Dimension = 3>
struct lagrange::scene::MeshInstance< Scalar, Index, Dimension >

A single mesh instance in a scene.

Template Parameters
ScalarMesh scalar type.
IndexMesh index type.
DimensionMesh dimension. Needed since we store the instance transform as a stack-allocated matrix.

The documentation for this struct was generated from the following file: