fixed minor warning

This commit is contained in:
nico 2020-01-12 22:35:14 +11:00
parent 0148e9ff4b
commit 681db6e551
1 changed files with 11 additions and 4 deletions

View File

@ -88,7 +88,7 @@ vcg::Point3<ScalarType> InterpolateNRosy3D(const std::vector<vcg::Point3<ScalarT
const vcg::Point3<ScalarType> &TargetN)
{
typedef typename vcg::Point3<ScalarType> CoordType;
///create a reference frame along TargetN
//create a reference frame along TargetN
CoordType TargetZ=TargetN;
TargetZ.Normalize();
CoordType U=CoordType(1,0,0);
@ -124,6 +124,13 @@ vcg::Point3<ScalarType> InterpolateNRosy3D(const std::vector<vcg::Point3<ScalarT
///trassform to the reference frame
rotV=RotFrame*rotV;
// if (isnan(rotV.X())||isnan(rotV.Y()))
// {
// std::cout << "V[i] " << V[i].X() << " " << V[i].Y() << std::endl << std::flush;
// std::cout << "Norm[i] " << Norm[i].X() << " " << Norm[i].Y() << " " << Norm[i].Z()<< std::endl;
// std::cout << "TargetN " << TargetN.X() << " " << TargetN.Y() << " " << TargetN.Z()<< std::endl<< std::flush;
// }
assert(!isnan(rotV.X()));
assert(!isnan(rotV.Y()));
@ -526,9 +533,9 @@ public:
static void InitBorderField(MeshType & mesh)
{
typedef typename MeshType::FaceType FaceType;
typedef typename MeshType::VertexType VertexType;
// typedef typename MeshType::VertexType VertexType;
typedef typename MeshType::CoordType CoordType;
typedef typename MeshType::ScalarType ScalarType;
// typedef typename MeshType::ScalarType ScalarType;
vcg::tri::UpdateTopology<MeshType>::FaceFace(mesh);
for (size_t i=0;i<mesh.face.size();i++)
@ -553,7 +560,7 @@ public:
{
typedef typename MeshType::FaceType FaceType;
typedef typename MeshType::VertexType VertexType;
//typedef typename MeshType::VertexType VertexType;
typedef typename MeshType::CoordType CoordType;
typedef typename MeshType::ScalarType ScalarType;