FaceGen 3 SDKs Reference
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Fg::Ssm3 Struct Reference

FaceGen 3 Statistical Shape Model. More...

#include <Fg3Sam.hpp>

Public Member Functions

 Ssm3 ()
 Asymmetric shape modes (by mode then by vertex). Can be empty.
 
 Ssm3 (String8 const &baseName)
 Loads a SSM from all applicable file types starting with 'baseName':
 
 Ssm3 (Vec3Fs const &allVerts)
 
 Ssm3 (Vec3Fs const &allVerts, String8 const &egmFile)
 
 Ssm3 (Vec3Fs const &allVerts, size_t numSymm, size_t numAsym)
 
bool empty () const
 No valid data currently loaded:
 
size_t numModes () const
 
void applyCoord_ (Floats const &coord, Vec3Fs &allVerts) const
 
void applyCoord_ (Floats const &symm, Floats const &asym, Vec3Fs &allVerts) const
 Calculate vertex positions given just the shape components of a face coordinate and save to 'allVerts':
 
void applyCoord_ (Sam3Coord const &coord, Vec3Fs &allVerts) const
 Calculate the vertex positions for a given face coordinate and save to 'allVerts'.
 
Vec3Fs applyCoord (Sam3Coord const &coord) const
 Functional version:
 
void saveModes (String8 const &filename) const
 
void loadModes (String8 const &filename)
 Save modes to .EGM format.
 
void transform (SimilarityD const &sim)
 

Public Attributes

Vec3Fs meanVerts
 
Vec3Fss symmModes
 Base shape. Can be empty.
 
Vec3Fss asymModes
 Symmetric shape modes (by mode then by vertex). Can be empty.
 

Detailed Description

FaceGen 3 Statistical Shape Model.

Definition at line 38 of file Fg3Sam.hpp.

Constructor & Destructor Documentation

◆ Ssm3() [1/3]

Fg::Ssm3::Ssm3 ( )
inline

Asymmetric shape modes (by mode then by vertex). Can be empty.

Definition at line 45 of file Fg3Sam.hpp.

◆ Ssm3() [2/3]

Fg::Ssm3::Ssm3 ( Vec3Fs const &  allVerts)
inlineexplicit

Definition at line 48 of file Fg3Sam.hpp.

◆ Ssm3() [3/3]

Fg::Ssm3::Ssm3 ( Vec3Fs const &  allVerts,
size_t  numSymm,
size_t  numAsym 
)
inline

Definition at line 50 of file Fg3Sam.hpp.

Member Function Documentation

◆ applyCoord()

Vec3Fs Fg::Ssm3::applyCoord ( Sam3Coord const &  coord) const
inline

Functional version:

Definition at line 63 of file Fg3Sam.hpp.

◆ applyCoord_()

void Fg::Ssm3::applyCoord_ ( Floats const &  coord,
Vec3Fs &  allVerts 
) const

For all 'apply' funcs below, be sure to use 'updateAllVerts()' to update the mesh with 'allVerts': Apply both symm and asym coefficients as a single shape coordinate:

◆ empty()

bool Fg::Ssm3::empty ( ) const
inline

No valid data currently loaded:

Definition at line 53 of file Fg3Sam.hpp.

◆ numModes()

size_t Fg::Ssm3::numModes ( ) const
inline

Definition at line 54 of file Fg3Sam.hpp.

Member Data Documentation

◆ asymModes

Vec3Fss Fg::Ssm3::asymModes

Symmetric shape modes (by mode then by vertex). Can be empty.

Definition at line 42 of file Fg3Sam.hpp.

◆ meanVerts

Vec3Fs Fg::Ssm3::meanVerts

Definition at line 40 of file Fg3Sam.hpp.

◆ symmModes

Vec3Fss Fg::Ssm3::symmModes

Base shape. Can be empty.

Definition at line 41 of file Fg3Sam.hpp.


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