Classes | Functions
trimesh_inertia.cpp File Reference

An example of computing the inertia properties of meshes. More...

#include <vcg/complex/complex.h>
#include <wrap/io_trimesh/import_off.h>
#include <vcg/complex/algorithms/inertia.h>
#include <vcg/complex/algorithms/create/platonic.h>
Include dependency graph for trimesh_inertia.cpp:

Go to the source code of this file.

Classes

class  MyEdge
class  MyFace
class  MyMesh
struct  MyUsedTypes
class  MyVertex

Functions

int main (int argc, char **argv)

Detailed Description

An example of computing the inertia properties of meshes.

Two meshes are created a rectangular box and a torus and their mass properties are computed and shown. The result should match the closed formula for these objects (with a reasonable approximation)

Definition in file trimesh_inertia.cpp.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 52 of file trimesh_inertia.cpp.



shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:38:55