diff --git a/apps/sample/trimesh_ransac/trimesh_ransac.cpp b/apps/sample/trimesh_ransac/trimesh_ransac.cpp index dd4974e6..b424a37a 100644 --- a/apps/sample/trimesh_ransac/trimesh_ransac.cpp +++ b/apps/sample/trimesh_ransac/trimesh_ransac.cpp @@ -85,7 +85,7 @@ int main( int argc, char **argv ) pp.samplingRadiusPerc=0.008; pp.evalSize=50; pp.inlierRatioThr = 0.5; - pp.iterMax = 100; + pp.iterMax = 400; pp.maxMatchingFeatureNum = 500; fpp.featureSampleRatio=0.5; std::vector >::Candidate> cVec; @@ -123,8 +123,8 @@ int main( int argc, char **argv ) printf("Completed Search (%5.2f init %5.2f search)\n",float(t1-t0)/CLOCKS_PER_SEC, float(t2-t1)/CLOCKS_PER_SEC); - MyMesh out0; tri::Append::MeshCopy(out0,movM); - tri::UpdatePosition::Matrix(out0,cVec[0].Tr); + MyMesh out0; tri::Append::MeshCopy(out0,fixM); + //tri::UpdatePosition::Matrix(out0,cVec[0].Tr); tri::io::ExporterPLY::Save(out0,"out0.ply"); MyMesh inlierMesh0;