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

#include <BrushPlugin.h>

Classes

struct  Vertex
 

Public Member Functions

 GeometryData (const std::string &path, const Mesh &displayed_mesh, const Imath::M44d &displayed_matrix, const Mesh &input_mesh, const Imath::M44d &input_matrix, bool side)
 

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::M44d displayed_matrix
 The displayed mesh precomputed matrices. More...
 
const Imath::M44d displayed_inversed_matrix
 The world to local mesh matrix. More...
 
const Imath::M44d 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...
 
const Imath::M44d input_matrix
 The input mesh precomputed matrices. More...
 
const Imath::M44d input_inversed_matrix
 The world to local mesh matrix. More...
 
const Imath::M44d input_inversed_transposed_matrix
 The mesh matrix to transform the normals from local to world. 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< BrushUserDatauser_data
 Optional user provided data. The data set in that field will be passed at the next stroke_update call. More...
 
bool side
 Where the brush is at the start of the stroke: true for left, false for right. More...
 

Constructor & Destructor Documentation

◆ GeometryData()

maquina::BrushPlugin::GeometryData::GeometryData ( const std::string &  path,
const Mesh displayed_mesh,
const Imath::M44d displayed_matrix,
const Mesh input_mesh,
const Imath::M44d input_matrix,
bool  side 
)

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::M44d maquina::BrushPlugin::GeometryData::displayed_inversed_matrix

The world to local mesh matrix.

◆ displayed_inversed_transposed_matrix

const Imath::M44d maquina::BrushPlugin::GeometryData::displayed_inversed_transposed_matrix

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

◆ displayed_matrix

const Imath::M44d 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_inversed_matrix

const Imath::M44d maquina::BrushPlugin::GeometryData::input_inversed_matrix

The world to local mesh matrix.

◆ input_inversed_transposed_matrix

const Imath::M44d maquina::BrushPlugin::GeometryData::input_inversed_transposed_matrix

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

◆ input_matrix

const Imath::M44d maquina::BrushPlugin::GeometryData::input_matrix

The input mesh precomputed matrices.

The local to world mesh matrix

◆ 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.

◆ side

bool maquina::BrushPlugin::GeometryData::side

Where the brush is at the start of the stroke: true for left, false for right.

◆ user_data

std::shared_ptr<BrushUserData> 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: