A small example about sampling and fitting. More...
#include <vcg/complex/complex.h>#include <vcg/complex/algorithms/update/topology.h>#include <vcg/complex/algorithms/update/normal.h>#include <vcg/complex/algorithms/create/platonic.h>#include <vcg/complex/algorithms/point_sampling.h>#include <wrap/io_trimesh/import_off.h>#include <vcg/space/fitting3.h>
Go to the source code of this file.
Classes | |
| class | MyEdge |
| class | MyFace |
| class | MyMesh |
| struct | MyUsedTypes |
| class | MyVertex |
Functions | |
| float | EvalPlane (vcg::Plane3f &pl, std::vector< vcg::Point3f > posVec) |
| int | main () |
A small example about sampling and fitting.
Given a mesh (an icosahedron) for each face we get a few random samples over it, and then we recover:
Definition in file trimesh_fitting.cpp.
| float EvalPlane | ( | vcg::Plane3f & | pl, |
| std::vector< vcg::Point3f > | posVec | ||
| ) |
Definition at line 55 of file trimesh_fitting.cpp.
| int main | ( | ) |
Definition at line 66 of file trimesh_fitting.cpp.