diff --git a/apps/ptx2ply/ptx2ply.cpp b/apps/ptx2ply/ptx2ply.cpp index 1018f941..d4dc0d02 100644 --- a/apps/ptx2ply/ptx2ply.cpp +++ b/apps/ptx2ply/ptx2ply.cpp @@ -27,11 +27,11 @@ using namespace vcg; class MyEdge; class MyFaceC; class MyFace; -class MyVertexC : public VertexSimp2 {}; +class MyVertexC : public VertexSimp2 {}; class MyFaceC : public FaceSimp2< MyVertexC,MyEdge,MyFaceC,face::VertexRef, face::Normal3f,face::BitFlags> {}; class MyMeshC : public tri::TriMesh< std::vector, std::vector > {}; -class MyVertex : public VertexSimp2 {}; +class MyVertex : public VertexSimp2 {}; class MyFace : public FaceSimp2< MyVertex,MyEdge,MyFace,face::VertexRef, face::Normal3f,face::BitFlags> {}; class MyMesh : public tri::TriMesh< std::vector, std::vector > {}; @@ -173,6 +173,7 @@ int readmesh(FILE* fp) (*viC).P()[0]=xx; (*viC).P()[1]=yy; (*viC).P()[2]=zz; + (*viC).Q()=rf; (*viC).C()[0]=rr; (*viC).C()[1]=gg; (*viC).C()[2]=bb; @@ -201,7 +202,8 @@ int readmesh(FILE* fp) (*viC).P()[0]=xx; (*viC).P()[1]=yy; (*viC).P()[2]=zz; - (*viC).C()[0]=rr; + (*viC).Q()=rf; + (*viC).C()[0]=rr; (*viC).C()[1]=gg; (*viC).C()[2]=bb; viC++; @@ -530,7 +532,7 @@ void dounpack(FILE* fp) while(!feof(fp)) { - sprintf(namef,".\\range%03i.ptx",rnum++); + sprintf(namef,"range%03i.ptx",rnum++); outf = fopen(namef,"w"); // write first integer @@ -780,7 +782,7 @@ int main(int argc, char *argv[]) FILE* outf; char cbuf; - outf = fopen(".\\dump.txt","w"); + outf = fopen("dump.txt","w"); for(int dit=0; dit::Save(currentmeshC,filename, plyMask); } else