Browse Source

director separate

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

38
code/pre_processing/FeatureSample/Source.cpp

@ -116,6 +116,8 @@ int check_mesh_edge_convex(Mesh3d* m, HE_edge<double>* he)
return res; 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) int main(int argc, char** argv)
{ {
@ -168,6 +170,25 @@ int main(int argc, char** argv)
if (processing_mode == 0) 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 //normalization part begin
//[-0.9, 0.9]^3 //[-0.9, 0.9]^3
@ -204,10 +225,11 @@ int main(int argc, char** argv)
{ {
mesh.write_off(outputfile.c_str()); 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 //first sample feature parts then non-feature parts
//mask: //mask:
//feature: 0 //feature: 0
@ -1106,13 +1128,5 @@ int main(int argc, char** argv)
outputmask.close(); outputmask.close();
return 1; return 1;
}
}
catch (const cxxopts::OptionException& e)
{
std::cout << "error parsing options: " << e.what() << std::endl;
exit(1);
}
return 0;
} }
Loading…
Cancel
Save