Rumba C++ SDK
maquina::BrushPlugin::GeometryData Class Reference

#include <BrushPlugin.h>

Public Types

using Vertex = std::pair< int, float >
 

Public Member Functions

 GeometryData (const std::string &path, const Mesh &displayed_mesh, const Imath::M44f &matrix, const Mesh &input_mesh)
 

Public Attributes

bool dirty
 Set this flag to update its geometry. More...
 
const std::string path
 The mesh's path in the edited scene. More...
 
Mesh displayed_mesh
 The displayed mesh in the viewport, may not be the same than the output mesh of the deformer node if other deformers are following ! More...
 
const Imath::M44f displayed_matrix
 The displayed mesh precomputed matrices. More...
 
const Imath::M44f displayed_inversed_matrix
 The world to local mesh matrix. More...
 
const Imath::M44f displayed_inversed_transposed_matrix
 The mesh matrix to transform the normals from local to world. More...
 
BufferV3f displayed_normals
 The displayed mesh normals. More...
 
const Mesh input_mesh
 The input mesh of the deformer node. More...
 
std::vector< Vertexweights
 The vertex weights computed since the last stroke update. More...
 
std::vector< float > accum_weights
 The accumulated weights since the beginning of the stroke. More...
 
std::shared_ptr< UserDatauser_data
 Optional user provided data. The data set in that field will be passed at the next stroke_update call. More...
 

Member Typedef Documentation

◆ Vertex

using maquina::BrushPlugin::GeometryData::Vertex = std::pair<int, float>

Constructor & Destructor Documentation

◆ GeometryData()

maquina::BrushPlugin::GeometryData::GeometryData ( const std::string &  path,
const Mesh displayed_mesh,
const Imath::M44f matrix,
const Mesh input_mesh 
)

Member Data Documentation

◆ accum_weights

std::vector<float> maquina::BrushPlugin::GeometryData::accum_weights

The accumulated weights since the beginning of the stroke.

◆ dirty

bool maquina::BrushPlugin::GeometryData::dirty

Set this flag to update its geometry.

◆ displayed_inversed_matrix

const Imath::M44f maquina::BrushPlugin::GeometryData::displayed_inversed_matrix

The world to local mesh matrix.

◆ displayed_inversed_transposed_matrix

const Imath::M44f maquina::BrushPlugin::GeometryData::displayed_inversed_transposed_matrix

The mesh matrix to transform the normals from local to world.

◆ displayed_matrix

const Imath::M44f maquina::BrushPlugin::GeometryData::displayed_matrix

The displayed mesh precomputed matrices.

The local to world mesh matrix

◆ displayed_mesh

Mesh maquina::BrushPlugin::GeometryData::displayed_mesh

The displayed mesh in the viewport, may not be the same than the output mesh of the deformer node if other deformers are following !

◆ displayed_normals

BufferV3f maquina::BrushPlugin::GeometryData::displayed_normals

The displayed mesh normals.

Computed smooth mesh normals

◆ input_mesh

const Mesh maquina::BrushPlugin::GeometryData::input_mesh

The input mesh of the deformer node.

◆ path

const std::string maquina::BrushPlugin::GeometryData::path

The mesh's path in the edited scene.

◆ user_data

std::shared_ptr<UserData> maquina::BrushPlugin::GeometryData::user_data

Optional user provided data. The data set in that field will be passed at the next stroke_update call.

◆ weights

std::vector<Vertex> maquina::BrushPlugin::GeometryData::weights

The vertex weights computed since the last stroke update.

If empty, this geometry has not been touched since the last stroke update


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