BUG: Fix #122 black analytic objects
Fix regression introduced in !121 with the use of the fast normals filter `vtkTriangleMeshPointNormals`. That filter was also applied for surface meshes with non-triangular cells: cells, sphere, capsule, cube (quads and not triangles). Since the issue of non-triangular meshes comes from analytic mesh sources, the output surface meshes will always be rigid, so their normals will stay constant and won't need to be recomputed. We can therefore use the filter `vtkPolyDataNormals`, which is slower but will only need to be called once of no deformation occurs.
Showing
- Base/Rendering/RenderDelegate/imstkVTKCapsuleRenderDelegate.cpp 1 addition, 1 deletion...endering/RenderDelegate/imstkVTKCapsuleRenderDelegate.cpp
- Base/Rendering/RenderDelegate/imstkVTKCubeRenderDelegate.cpp 1 addition, 1 deletionBase/Rendering/RenderDelegate/imstkVTKCubeRenderDelegate.cpp
- Base/Rendering/RenderDelegate/imstkVTKLineMeshRenderDelegate.cpp 1 addition, 1 deletion...ndering/RenderDelegate/imstkVTKLineMeshRenderDelegate.cpp
- Base/Rendering/RenderDelegate/imstkVTKPlaneRenderDelegate.cpp 1 addition, 1 deletion.../Rendering/RenderDelegate/imstkVTKPlaneRenderDelegate.cpp
- Base/Rendering/RenderDelegate/imstkVTKRenderDelegate.cpp 13 additions, 4 deletionsBase/Rendering/RenderDelegate/imstkVTKRenderDelegate.cpp
- Base/Rendering/RenderDelegate/imstkVTKRenderDelegate.h 1 addition, 1 deletionBase/Rendering/RenderDelegate/imstkVTKRenderDelegate.h
- Base/Rendering/RenderDelegate/imstkVTKSphereRenderDelegate.cpp 1 addition, 1 deletion...Rendering/RenderDelegate/imstkVTKSphereRenderDelegate.cpp
- Base/Rendering/RenderDelegate/imstkVTKSurfaceMeshRenderDelegate.cpp 1 addition, 1 deletion...ring/RenderDelegate/imstkVTKSurfaceMeshRenderDelegate.cpp
Please register or sign in to comment