mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-20 02:55:47 +00:00
6e1d3a84f0
how did any of this work? match other CellSet file layouts. ??? compile in CUDA. unit tests. also only serial. make error message accurate Well, this compiles and works now. Did it ever? use CellShapeTagGeneric UnitTest matches previous changes. whoops Fix linking problems. Need the same interface as other ThreadIndices. add filter test okay, let's try duplicating CellSetStructure. okay inching... change to wedge in CellSetListTag Means changing these to support it. switch back to wedge from generic compiles and runs remove ExtrudedType need vtkm_worklet vtkm_worklet needs to be included fix segment count for wedge specialization need to actually save the index for the other constructor. specialize on Explicit clean up warning angled brackets not quotes. formatting
46 lines
1.4 KiB
C++
46 lines
1.4 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.
|
|
//
|
|
// Copyright 2012 Sandia Corporation.
|
|
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
|
|
// the U.S. Government retains certain rights in this software.
|
|
//
|
|
//=============================================================================
|
|
|
|
#ifndef vtk_m_filter_PolicyExtrude_h
|
|
#define vtk_m_filter_PolicyExtrude_h
|
|
|
|
#include <vtkm/cont/ArrayHandleExtrudeCoords.h>
|
|
#include <vtkm/cont/CellSetExtrude.h>
|
|
|
|
#include <vtkm/ListTag.h>
|
|
#include <vtkm/filter/PolicyDefault.h>
|
|
|
|
struct VTKM_ALWAYS_EXPORT ExtrudeUnstructuredCellSets
|
|
: vtkm::ListTagBase<vtkm::cont::CellSetExtrude>
|
|
{
|
|
};
|
|
|
|
//Todo: add in Cylinder storage tag when it is written
|
|
struct VTKM_ALWAYS_EXPORT ExtrudeCoordinateStorage
|
|
: vtkm::ListTagBase<vtkm::cont::StorageTagBasic, vtkm::cont::internal::StorageTagExtrude>
|
|
{
|
|
};
|
|
|
|
struct VTKM_ALWAYS_EXPORT PolicyExtrude : vtkm::filter::PolicyBase<PolicyExtrude>
|
|
{
|
|
public:
|
|
using UnstructuredCellSetList = ExtrudeUnstructuredCellSets;
|
|
using AllCellSetList = ExtrudeUnstructuredCellSets;
|
|
using CoordinateStorageList = ExtrudeCoordinateStorage;
|
|
};
|
|
|
|
#endif
|