VTK-m
2.0
vtkm
rendering
raytracing
TriangleExtractor.h
Go to the documentation of this file.
1
//============================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//============================================================================
10
#ifndef vtk_m_rendering_raytracing_Triangle_Extractor_h
11
#define vtk_m_rendering_raytracing_Triangle_Extractor_h
12
13
#include <
vtkm/cont/DataSet.h
>
14
#include <vtkm/rendering/vtkm_rendering_export.h>
15
16
namespace
vtkm
17
{
18
namespace
rendering
19
{
20
namespace
raytracing
21
{
22
23
class
VTKM_RENDERING_EXPORT
TriangleExtractor
24
{
25
protected
:
26
vtkm::cont::ArrayHandle<vtkm::Id4>
Triangles
;
// (cellid, v0, v1, v2)
27
public
:
28
void
ExtractCells(
const
vtkm::cont::UnknownCellSet
& cells);
29
30
vtkm::cont::ArrayHandle<vtkm::Id4>
GetTriangles();
31
vtkm::Id
GetNumberOfTriangles()
const
;
32
};
// class TriangleExtractor
33
}
34
}
35
}
//namespace vtkm::rendering::raytracing
36
#endif //vtk_m_rendering_raytracing_Triangle_Extractor_h
vtkm::cont::ArrayHandle< vtkm::Id4 >
vtkm
Groups connected points that have the same field value.
Definition:
Atomic.h:19
vtkm::rendering::raytracing::TriangleExtractor::Triangles
vtkm::cont::ArrayHandle< vtkm::Id4 > Triangles
Definition:
TriangleExtractor.h:26
vtkm::cont::UnknownCellSet
A CellSet of an unknown type.
Definition:
UnknownCellSet.h:48
vtkm::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition:
Types.h:191
vtkm::rendering::raytracing::TriangleExtractor
Definition:
TriangleExtractor.h:23
DataSet.h
Generated by
1.8.17