Commit 7d5104f8 authored by T.J. Corona's avatar T.J. Corona

RenderMesh: disable image comparison, fix warnings.

parent 976fc548
Pipeline #79910 passed with stage
......@@ -72,8 +72,7 @@ class RenderMesh(smtk.model.Operator):
# Construct a pyplot, populate it with the triangles and color it by the
# z-coordinate of the mesh
plt.figure()
plt.gca().set_aspect('equal')
plt.figure(figsize=(3, 2), dpi=100)
plt.tricontourf([c[0] for c in coords], [c[1]
for c in coords], tris, [c[2] for c in coords])
plt.colorbar()
......
......@@ -38,7 +38,8 @@ if (SMTK_ENABLE_VTK_SUPPORT)
# Add compile definitions to force linking to implementation modules
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS ${VTK_DEFINITIONS})
target_compile_definitions(RenderMesh PRIVATE "USE_VTK=1")
# Do not enable VTK integration for testing
# target_compile_definitions(RenderMesh PRIVATE "USE_VTK=1")
list(APPEND additional_libraries
vtkRenderingGL2PSOpenGL2
......
......@@ -65,6 +65,9 @@ void cleanup(const std::string& file_path)
// environment.
int main(int argc, char* argv[])
{
(void)argc;
(void)argv;
// Create a model manager
smtk::model::ManagerPtr manager = smtk::model::Manager::create();
......@@ -97,7 +100,7 @@ int main(int argc, char* argv[])
smtk::mesh::CollectionPtr c = smtk::io::importMesh(input_path, meshManager);
if (!c || !c->isValid())
{
std::cerr << "Could not read mesh from " << argv[1] << std::endl;
std::cerr << "Could not read mesh from " << input_path << std::endl;
}
// Construct a "render mesh" operator
......
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