mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 09:59:12 +00:00
34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
//============================================================================
|
|
// Copyright (c) Kitware, Inc.
|
|
// All rights reserved.
|
|
// See LICENSE.txt for details.
|
|
//
|
|
// This software is distributed WITHOUT ANY WARRANTY; without even
|
|
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
// PURPOSE. See the above copyright notice for more information.
|
|
//============================================================================
|
|
|
|
#include <vtkm/rendering/internal/RunTriangulator.h>
|
|
|
|
#include <vtkm/cont/TryExecute.h>
|
|
#include <vtkm/rendering/Triangulator.h>
|
|
|
|
namespace vtkm
|
|
{
|
|
namespace rendering
|
|
{
|
|
namespace internal
|
|
{
|
|
|
|
void RunTriangulator(const vtkm::cont::UnknownCellSet& cellSet,
|
|
vtkm::cont::ArrayHandle<vtkm::Id4>& indices,
|
|
vtkm::Id& numberOfTriangles,
|
|
const vtkm::cont::Field& ghostField)
|
|
{
|
|
vtkm::rendering::Triangulator triangulator;
|
|
triangulator.Run(cellSet, indices, numberOfTriangles, ghostField);
|
|
}
|
|
}
|
|
}
|
|
} // namespace vtkm::rendering::internal
|