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.
|
|
|
|
//============================================================================
|
|
|
|
#ifndef vtk_m_rendering_internal_RunTriangulator_h
|
|
|
|
#define vtk_m_rendering_internal_RunTriangulator_h
|
|
|
|
|
|
|
|
#include <vtkm/rendering/vtkm_rendering_export.h>
|
|
|
|
|
|
|
|
#include <vtkm/cont/ArrayHandle.h>
|
2023-11-07 17:29:16 +00:00
|
|
|
#include <vtkm/cont/Field.h>
|
2017-02-22 20:33:52 +00:00
|
|
|
#include <vtkm/cont/RuntimeDeviceTracker.h>
|
2022-01-04 22:38:18 +00:00
|
|
|
#include <vtkm/cont/UnknownCellSet.h>
|
2016-08-29 21:50:47 +00:00
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace rendering
|
|
|
|
{
|
|
|
|
namespace internal
|
|
|
|
{
|
2016-08-29 21:50:47 +00:00
|
|
|
|
|
|
|
/// This is a wrapper around the Triangulator worklet so that the
|
|
|
|
/// implementation of the triangulator only gets compiled once. This function
|
|
|
|
/// really is a stop-gap. Eventually, the Triangulator should be moved to
|
|
|
|
/// filters, and filters should be compiled in a library (for the same reason).
|
|
|
|
///
|
|
|
|
VTKM_RENDERING_EXPORT
|
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,
|
2023-11-07 17:29:16 +00:00
|
|
|
const vtkm::cont::Field& ghostField = vtkm::cont::Field());
|
2016-08-29 21:50:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
} // namespace vtkm::rendering::internal
|
|
|
|
|
|
|
|
#endif //vtk_m_rendering_internal_RunTriangulator_h
|