mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
Document data that comes from VisIt tutorial
Some of the data sets that are included from VTK-m are derived from the VisIt Tutorial Data (https://www.visitusers.org/index.php?title=Tutorial_Data). These are covered by the VisIt license, as communicated by Eric Brugger. Although the license for these data is compatible with VTK-m's license, we should still attribute the source of the data and make clear the copyrights. The data are moved into the third_party directory, and readmes are added to document everything. The noise.vtk and noise.bov files have been renamed example.vtk and example_temp.bov to match the name of the file in the VisIt tutorial data archive. The ucd3d.vtk file, which is similar to the curv3d.silo data but altered, has been removed. It was not used for any tests. It was referenced in a couple of example programs, but the reference is easily changed.
This commit is contained in:
parent
06391c4e63
commit
796ec9638e
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:3a24175a16a60f3e917170907546a52de15e703bd06017fecd9c6238db9d2726
|
oid sha256:3f9bdb6825e859500308217228970c406b8f75c0ab16d0c2c8d704dfa9ae2e10
|
||||||
size 103177
|
size 116102
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8c23821f7436bce6d71593698e3cb0047752b4dd671513f8c4e961d4489f199f
|
|
||||||
size 12110311
|
|
3
data/data/third_party/README.md
vendored
Normal file
3
data/data/third_party/README.md
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:362e59e70e65fd365bc64221decdea1096ac9fe4346e23126ec2d35836215832
|
||||||
|
size 456
|
3
data/data/third_party/visit/README.md
vendored
Normal file
3
data/data/third_party/visit/README.md
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:279231652c3bc23c31a8c7a6bf2e71f56afd11b6e09b5c05dca5dc48380ee0fb
|
||||||
|
size 1934
|
3
data/data/third_party/visit/example.vtk
vendored
Normal file
3
data/data/third_party/visit/example.vtk
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ce56bb831ac66983f9689c2a73ec0dd7a7a91294f822ad19bf1caa093a8fba25
|
||||||
|
size 11295710
|
3
data/data/third_party/visit/example_temp.bov
vendored
Normal file
3
data/data/third_party/visit/example_temp.bov
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:724a6dce8f6f5d6478891a915c76c57c5881467240bb055c6001725631f7833a
|
||||||
|
size 350
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2071da4365341303e401d20dc6e8bb35ebeccc24b801cc81ab87e75e3a4ef654
|
|
||||||
size 339
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9a178b29073f2aa0d15375b07d0bdd28369422a352b5dcb5155cf67aebe54bbc
|
|
||||||
size 286099
|
|
@ -24,9 +24,9 @@ int main(int argc, char* argv[])
|
|||||||
if ((argc < 4) || (argc > 5))
|
if ((argc < 4) || (argc > 5))
|
||||||
{
|
{
|
||||||
std::cerr << "Usage: " << argv[0] << " in_data.vtk field_name clip_value [out_data.vtk]\n\n";
|
std::cerr << "Usage: " << argv[0] << " in_data.vtk field_name clip_value [out_data.vtk]\n\n";
|
||||||
std::cerr << "For example, you could use the ucd3d.vtk that comes with the VTK-m source:\n\n";
|
std::cerr << "For example, you could use the example.vtk that comes with the VTK-m source:\n\n";
|
||||||
std::cerr << " " << argv[0]
|
std::cerr << " " << argv[0]
|
||||||
<< " <path-to-vtkm-source>/data/data/unstructured/ucd3d.vtk v 0.3\n";
|
<< " <path-to-vtkm-source>/data/data/third_party/visit/example.vtk temp 3.5\n";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
std::string infilename = argv[1];
|
std::string infilename = argv[1];
|
||||||
|
@ -24,8 +24,9 @@ int main(int argc, char* argv[])
|
|||||||
if ((argc < 2) || (argc > 3))
|
if ((argc < 2) || (argc > 3))
|
||||||
{
|
{
|
||||||
std::cerr << "Usage: " << argv[0] << " in_data.vtk [out_data.vtk]\n\n";
|
std::cerr << "Usage: " << argv[0] << " in_data.vtk [out_data.vtk]\n\n";
|
||||||
std::cerr << "For example, you could use the ucd3d.vtk that comes with the VTK-m source:\n\n";
|
std::cerr << "For example, you could use the example.vtk that comes with the VTK-m source:\n\n";
|
||||||
std::cerr << " " << argv[0] << " <path-to-vtkm-source>/data/data/unstructured/ucd3d.vtk\n";
|
std::cerr << " " << argv[0]
|
||||||
|
<< " <path-to-vtkm-source>/data/data/third_party/visit/example.vtk\n";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
std::string infilename = argv[1];
|
std::string infilename = argv[1];
|
||||||
|
@ -41,7 +41,8 @@ inline vtkm::cont::DataSet readBOVDataSet(const char* fname)
|
|||||||
|
|
||||||
void TestReadingBOVDataSet()
|
void TestReadingBOVDataSet()
|
||||||
{
|
{
|
||||||
std::string bovFile = vtkm::cont::testing::Testing::DataPath("uniform/noise.bov");
|
std::string bovFile =
|
||||||
|
vtkm::cont::testing::Testing::DataPath("third_party/visit/example_temp.bov");
|
||||||
|
|
||||||
auto const& ds = readBOVDataSet(bovFile.data());
|
auto const& ds = readBOVDataSet(bovFile.data());
|
||||||
|
|
||||||
|
@ -26,8 +26,10 @@ namespace
|
|||||||
void RenderTests()
|
void RenderTests()
|
||||||
{
|
{
|
||||||
vtkm::cont::ColorTable colorTable = vtkm::cont::ColorTable::Preset::Inferno;
|
vtkm::cont::ColorTable colorTable = vtkm::cont::ColorTable::Preset::Inferno;
|
||||||
colorTable.AddPointAlpha(0.0, .01f);
|
colorTable.AddPointAlpha(0.0, 0.01f);
|
||||||
colorTable.AddPointAlpha(1.0, .01f);
|
colorTable.AddPointAlpha(0.4, 0.01f);
|
||||||
|
colorTable.AddPointAlpha(0.7, 0.2f);
|
||||||
|
colorTable.AddPointAlpha(1.0, 0.5f);
|
||||||
|
|
||||||
vtkm::rendering::testing::RenderTestOptions options;
|
vtkm::rendering::testing::RenderTestOptions options;
|
||||||
options.Mapper = vtkm::rendering::testing::MapperType::Volume;
|
options.Mapper = vtkm::rendering::testing::MapperType::Volume;
|
||||||
@ -35,7 +37,7 @@ void RenderTests()
|
|||||||
options.ColorTable = colorTable;
|
options.ColorTable = colorTable;
|
||||||
|
|
||||||
vtkm::cont::DataSet rectDS, unsDS;
|
vtkm::cont::DataSet rectDS, unsDS;
|
||||||
std::string rectfname = vtkm::cont::testing::Testing::DataPath("rectilinear/noise.vtk");
|
std::string rectfname = vtkm::cont::testing::Testing::DataPath("third_party/visit/example.vtk");
|
||||||
vtkm::io::VTKDataSetReader rectReader(rectfname);
|
vtkm::io::VTKDataSetReader rectReader(rectfname);
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -53,7 +55,7 @@ void RenderTests()
|
|||||||
}
|
}
|
||||||
|
|
||||||
vtkm::rendering::testing::RenderTest(
|
vtkm::rendering::testing::RenderTest(
|
||||||
rectDS, "hardyglobal", "rendering/volume/rectilinear3D.png", options);
|
rectDS, "temp", "rendering/volume/rectilinear3D.png", options);
|
||||||
}
|
}
|
||||||
|
|
||||||
} //namespace
|
} //namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user