minor type changes to compile with gcc
removed debug include to export_ply.h
This commit is contained in:
parent
1185e2ab96
commit
a00da7b3f3
|
@ -68,8 +68,6 @@ the vertex
|
||||||
#include <vcg/complex/intersection.h>
|
#include <vcg/complex/intersection.h>
|
||||||
#include <vcg/complex/trimesh/inertia.h>
|
#include <vcg/complex/trimesh/inertia.h>
|
||||||
|
|
||||||
#include <wrap/io_trimesh/export_PLY.h>
|
|
||||||
|
|
||||||
namespace vcg {
|
namespace vcg {
|
||||||
namespace tri {
|
namespace tri {
|
||||||
|
|
||||||
|
@ -87,7 +85,6 @@ class UpdateCurvature
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
typedef typename MeshType MeshType;
|
|
||||||
typedef typename MeshType::FaceType FaceType;
|
typedef typename MeshType::FaceType FaceType;
|
||||||
typedef typename MeshType::FacePointer FacePointer;
|
typedef typename MeshType::FacePointer FacePointer;
|
||||||
typedef typename MeshType::FaceIterator FaceIterator;
|
typedef typename MeshType::FaceIterator FaceIterator;
|
||||||
|
@ -301,17 +298,17 @@ public:
|
||||||
If pointVSfaceInt==false the covariance is computed by (analytic)integration over the surface (slower)
|
If pointVSfaceInt==false the covariance is computed by (analytic)integration over the surface (slower)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef vcg::GridStaticPtr <typename MeshType::FaceType, typename MeshType::ScalarType > MeshGridType;
|
typedef vcg::GridStaticPtr <FaceType, ScalarType > MeshGridType;
|
||||||
typedef vcg::GridStaticPtr <typename MeshType::VertexType, typename MeshType::ScalarType > PointsGridType;
|
typedef vcg::GridStaticPtr <VertexType, ScalarType > PointsGridType;
|
||||||
|
|
||||||
static void PrincipalDirectionsPCA(MeshType &m, ScalarType r, bool pointVSfaceInt = true) {
|
static void PrincipalDirectionsPCA(MeshType &m, ScalarType r, bool pointVSfaceInt = true) {
|
||||||
std::vector<MeshType:: VertexType*> closests;
|
std::vector<VertexType*> closests;
|
||||||
std::vector<MeshType::ScalarType> distances;
|
std::vector<ScalarType> distances;
|
||||||
std::vector<MeshType::CoordType> points;
|
std::vector<CoordType> points;
|
||||||
VertexIterator vi;
|
VertexIterator vi;
|
||||||
ScalarType area;
|
ScalarType area;
|
||||||
MeshType tmpM;
|
MeshType tmpM;
|
||||||
std::vector<typename MeshType::CoordType>::iterator ii;
|
typename std::vector<CoordType>::iterator ii;
|
||||||
vcg::tri::TrivialSampler<MeshType> vs;
|
vcg::tri::TrivialSampler<MeshType> vs;
|
||||||
|
|
||||||
MeshGridType mGrid;
|
MeshGridType mGrid;
|
||||||
|
@ -336,9 +333,9 @@ public:
|
||||||
{
|
{
|
||||||
vcg::trimesh::GetInSphereVertex<
|
vcg::trimesh::GetInSphereVertex<
|
||||||
MeshType,
|
MeshType,
|
||||||
PointsGridType,std::vector<MeshType::VertexType*>,
|
PointsGridType,std::vector<VertexType*>,
|
||||||
std::vector<MeshType::ScalarType>,
|
std::vector<ScalarType>,
|
||||||
std::vector<MeshType::CoordType> >(tmpM,pGrid, (*vi).cP(),r ,closests,distances,points);
|
std::vector<CoordType> >(tmpM,pGrid, (*vi).cP(),r ,closests,distances,points);
|
||||||
|
|
||||||
A.Covariance(points,bp);
|
A.Covariance(points,bp);
|
||||||
A*=area*area/1000;
|
A*=area*area/1000;
|
||||||
|
|
Loading…
Reference in New Issue