Commit 690eae31 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

PERF: Move vtk cell consistency check to utility

The cell consistency check takes considerable time during the initialization
and is removed from the surfaceMeshRenderDelegate.

Mesh related checks such as this (watertightness etc.) should be done
within the utility functions of Mesh or Rendering module. For now the user
is expected to supply correct meshes.
parent e951cf12
Pipeline #63599 passed with stage
......@@ -72,13 +72,6 @@ VTKSurfaceMeshRenderDelegate::VTKSurfaceMeshRenderDelegate(std::shared_ptr<Surfa
polydata->SetPoints(points);
polydata->SetPolys(cells);
// Check for cell consistency
auto consistentCellsFilter = vtkSmartPointer<vtkPolyDataNormals>::New();
consistentCellsFilter->SplittingOff();
consistentCellsFilter->SetInputData(polydata);
consistentCellsFilter->Update();
polydata->SetPolys(consistentCellsFilter->GetOutput()->GetPolys());
// Create connection source
auto source = vtkSmartPointer<vtkTrivialProducer>::New();
source->SetOutput(polydata);
......
......@@ -30,7 +30,6 @@
namespace imstk
{
void
LaparoscopicToolController::updateControlledObjects()
{
......
......@@ -30,7 +30,6 @@
namespace imstk
{
void
SceneObjectController::updateControlledObjects()
{
......
Supports Markdown
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