Browse Source

director separate

main
mckay 2 months ago
parent
commit
13617025ac
  1. 34
      code/pre_processing/FeatureSample/Source.cpp

34
code/pre_processing/FeatureSample/Source.cpp

@ -116,6 +116,8 @@ int check_mesh_edge_convex(Mesh3d* m, HE_edge<double>* he)
return res;
}
void normalize_mesh(Mesh3d& mesh, std::string outputfile);
void generate_feature_sample(Mesh3d& mesh, std::string outputfile);
int main(int argc, char** argv)
{
@ -167,6 +169,25 @@ int main(int argc, char** argv)
}
if (processing_mode == 0)
{
normalize_mesh(mesh, outputfile);
return 1;
}
else if (processing_mode == 1)
{
}
}
catch (const cxxopts::OptionException& e)
{
std::cout << "error parsing options: " << e.what() << std::endl;
exit(1);
}
return 0;
}
void normalize_mesh(Mesh3d& mesh, std::string outputfile)
{
// 网络处理模式
//normalization part begin
@ -204,9 +225,10 @@ int main(int argc, char** argv)
{
mesh.write_off(outputfile.c_str());
}
return 1;
}
else if (processing_mode == 1)
void generate_feature_sample(Mesh3d& mesh, std::string outputfile)
{
//first sample feature parts then non-feature parts
//mask:
@ -1106,13 +1128,5 @@ int main(int argc, char** argv)
outputmask.close();
return 1;
}
}
catch (const cxxopts::OptionException& e)
{
std::cout << "error parsing options: " << e.what() << std::endl;
exit(1);
}
return 0;
}
Loading…
Cancel
Save