Skip to content
Snippets Groups Projects
Commit ee4a1fbc authored by Karsten Rink's avatar Karsten Rink
Browse files

Merge pull request #801 from norihiro-w/fix-MATERIAL

MATERIAL is not in UseIntensityAs anymore
parents 01ee54f3 5920f72d
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ int main (int argc, char* argv[])
}
MeshLib::Mesh* src_mesh(MeshLib::ConvertRasterToMesh(*raster, MeshLib::MeshElemType::QUAD,
MeshLib::UseIntensityAs::MATERIAL).execute());
MeshLib::UseIntensityAs::DATAVECTOR).execute());
std::vector<std::size_t> src_perm(size);
std::iota(src_perm.begin(), src_perm.end(), 0);
......
......@@ -50,7 +50,7 @@ int main (int argc, char* argv[])
const double origin[3] = {origin_x_arg.getValue() + edge_length/2, origin_y_arg.getValue() + edge_length/2, origin_z_arg.getValue()};
for (unsigned i=0; i<size; ++i) values[i]=0;
MeshLib::Mesh* mesh(MeshLib::VtkMeshConverter::convertImgToMesh(values, origin, height, width,
edge_length, MeshLib::MeshElemType::QUAD, MeshLib::UseIntensityAs::MATERIAL));
edge_length, MeshLib::MeshElemType::QUAD, MeshLib::UseIntensityAs::DATAVECTOR));
delete [] values;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment