Go to the documentation of this file.
20 #ifndef vtkm_m_worklet_OrientNormals_h
21 #define vtkm_m_worklet_OrientNormals_h
46 template <
typename CellSetType,
47 typename CoordsCompType,
48 typename CoordsStorageType,
49 typename CellNormalCompType,
50 typename CellNormalStorageType>
52 const CellSetType& cells,
59 template <
typename CellSetType,
60 typename CoordsCompType,
61 typename CoordsStorageType,
62 typename PointNormalCompType,
63 typename PointNormalStorageType>
65 const CellSetType& cells,
73 template <
typename CellSetType,
74 typename CoordsCompType,
75 typename CoordsStorageType,
76 typename PointNormalCompType,
77 typename PointNormalStorageType,
78 typename CellNormalCompType,
79 typename CellNormalStorageType>
81 const CellSetType& cells,
102 template <
typename NormalCompType,
typename NormalStorageType>
114 #endif // vtkm_m_worklet_OrientNormals_h
Manages an array-worth of data.
Definition: ArrayHandle.h:283
Groups connected points that have the same field value.
Definition: Atomic.h:19
static VTKM_CONT void Run(const CellSetType &cells, const vtkm::cont::ArrayHandle< vtkm::Vec< CoordsCompType, 3 >, CoordsStorageType > &coords, vtkm::cont::ArrayHandle< vtkm::Vec< CellNormalCompType, 3 >, CellNormalStorageType > &cellNormals)
Definition: OrientCellNormals.h:331
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
static VTKM_CONT void RunCellNormals(const CellSetType &cells, const vtkm::cont::ArrayHandle< vtkm::Vec< CoordsCompType, 3 >, CoordsStorageType > &coords, vtkm::cont::ArrayHandle< vtkm::Vec< CellNormalCompType, 3 >, CellNormalStorageType > &cellNormals)
Definition: OrientNormals.h:51
Definition: OrientNormals.h:90
static VTKM_CONT bool Copy(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, vtkm::cont::ArrayHandle< U, COut > &output)
Definition: Algorithm.h:410
static VTKM_CONT void RunFlipNormals(vtkm::cont::ArrayHandle< vtkm::Vec< NormalCompType, 3 >, NormalStorageType > &normals)
Reverse the normals to point in the opposite direction.
Definition: OrientNormals.h:103
Orients normals to point outside of the dataset.
Definition: OrientNormals.h:43
VTKM_CONT vtkm::cont::ArrayHandleTransform< HandleType, FunctorType > make_ArrayHandleTransform(HandleType handle, FunctorType functor)
make_ArrayHandleTransform is convenience function to generate an ArrayHandleTransform.
Definition: ArrayHandleTransform.h:474
#define VTKM_CONT
Definition: ExportMacros.h:57
static VTKM_CONT void RunPointAndCellNormals(const CellSetType &cells, const vtkm::cont::ArrayHandle< vtkm::Vec< CoordsCompType, 3 >, CoordsStorageType > &coords, vtkm::cont::ArrayHandle< vtkm::Vec< PointNormalCompType, 3 >, PointNormalStorageType > &pointNormals, vtkm::cont::ArrayHandle< vtkm::Vec< CellNormalCompType, 3 >, CellNormalStorageType > &cellNormals)
Definition: OrientNormals.h:80
static VTKM_CONT void RunPointNormals(const CellSetType &cells, const vtkm::cont::ArrayHandle< vtkm::Vec< CoordsCompType, 3 >, CoordsStorageType > &coords, vtkm::cont::ArrayHandle< vtkm::Vec< PointNormalCompType, 3 >, PointNormalStorageType > &pointNormals)
Definition: OrientNormals.h:64
VTKM_EXEC_CONT T operator()(const T &val) const
Definition: OrientNormals.h:93
A short fixed-length array.
Definition: Types.h:767
static VTKM_CONT void Run(const CellSetType &cells, const vtkm::cont::ArrayHandle< vtkm::Vec< CoordsCompType, 3 >, CoordsStorageType > &coords, vtkm::cont::ArrayHandle< vtkm::Vec< PointNormalCompType, 3 >, PointNormalStorageType > &pointNormals)
Definition: OrientPointNormals.h:269
static VTKM_CONT void Run(const CellSetType &cells, const vtkm::cont::ArrayHandle< vtkm::Vec< CoordsCompType, 3 >, CoordsStorageType > &coords, vtkm::cont::ArrayHandle< vtkm::Vec< PointNormalCompType, 3 >, PointNormalStorageType > &pointNormals, vtkm::cont::ArrayHandle< vtkm::Vec< CellNormalCompType, 3 >, CellNormalStorageType > &cellNormals)
Definition: OrientPointAndCellNormals.h:306