Commit 9fd98c6f authored by Kirill Terekhov's avatar Kirill Terekhov
Browse files

fix mesh transformation example

parent f04489d8
...@@ -85,7 +85,7 @@ void CubeTransform::Transform() ...@@ -85,7 +85,7 @@ void CubeTransform::Transform()
for(int d = 0; d < 3; ++d) for(int d = 0; d < 3; ++d)
{ {
cmin[d]=1.0e+20; cmin[d]=+1.0e+20;
cmax[d]=-1.0e+20; cmax[d]=-1.0e+20;
} }
......
...@@ -40,13 +40,15 @@ int main(int argc, char *argv[]) ...@@ -40,13 +40,15 @@ int main(int argc, char *argv[])
int dims = 3; int dims = 3;
if( argc > 3 ) outfile = std::string(argv[3]); if( argc > 3 ) outfile = std::string(argv[3]);
if( argc > 4 ) dims = atoi(argv[4]); if( argc > 4 ) dims = atoi(argv[4]);
std::cout << argv[1] << " mapping_file=" << mapfile << " mesh_file=" << infile << " output=" << outfile << " dims=" << dims << std::endl;
Mesh mesh; Mesh mesh;
mesh.Load(infile); mesh.Load(infile);
CubeTransform ct(mesh); CubeTransform ct(mesh);
ct.LoadMapping(mapfile); ct.LoadMapping(mapfile,dims);
ct.PrintMapping(); ct.PrintMapping();
ct.Transform(); ct.Transform();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment