2016-08-29 21:50:47 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
//
|
2016-08-29 21:50:47 +00:00
|
|
|
// 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>
|
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace rendering
|
|
|
|
{
|
|
|
|
namespace internal
|
|
|
|
{
|
2016-08-29 21:50:47 +00:00
|
|
|
|
2022-01-04 22:38:18 +00:00
|
|
|
void RunTriangulator(const vtkm::cont::UnknownCellSet& cellSet,
|
2019-07-31 16:20:38 +00:00
|
|
|
vtkm::cont::ArrayHandle<vtkm::Id4>& indices,
|
2023-11-07 00:42:43 +00:00
|
|
|
vtkm::Id& numberOfTriangles,
|
|
|
|
const vtkm::cont::Field& ghostField)
|
2016-08-29 21:50:47 +00:00
|
|
|
{
|
2018-09-11 02:25:42 +00:00
|
|
|
vtkm::rendering::Triangulator triangulator;
|
2023-11-07 00:42:43 +00:00
|
|
|
triangulator.Run(cellSet, indices, numberOfTriangles, ghostField);
|
2016-08-29 21:50:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // namespace vtkm::rendering::internal
|