246a58309c
It's a filter that Split sharp manifold edges where the feature angle between the adjacent surfaces are larger than the threshold value. When an edge is split, it would add a new point to the coordinates and update the connectivity of an adjacent surface. Ex. there are two adjacent triangles(0,1,2) and (2,1,3). Edge (1,2) needs to be split. Two new points 4(duplication of point 1) an 5(duplication of point 2) would be added and the later triangle's connectivity would be changed to (5,4,3). By default, all old point's fields would be copied to the new point. Use with caution.
113 lines
3.0 KiB
CMake
113 lines
3.0 KiB
CMake
##============================================================================
|
|
## 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 2014 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
|
|
## Copyright 2014 UT-Battelle, LLC.
|
|
## Copyright 2014 Los Alamos National Security.
|
|
##
|
|
## Under the terms of Contract DE-NA0003525 with NTESS,
|
|
## the U.S. Government retains certain rights in this software.
|
|
##
|
|
## Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
|
|
## Laboratory (LANL), the U.S. Government retains certain rights in
|
|
## this software.
|
|
##============================================================================
|
|
|
|
# Configure version file. (Other configuration in internal/Configure.h)
|
|
vtkm_get_kit_name(kit_name kit_dir)
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Version.h.in
|
|
${VTKm_BINARY_INCLUDE_DIR}/${kit_dir}/Version.h
|
|
@ONLY)
|
|
vtkm_install_headers(
|
|
vtkm ${VTKm_BINARY_INCLUDE_DIR}/${kit_dir}/Version.h)
|
|
|
|
set(headers
|
|
Assert.h
|
|
BaseComponent.h
|
|
BinaryPredicates.h
|
|
BinaryOperators.h
|
|
Bitset.h
|
|
Bounds.h
|
|
CellShape.h
|
|
CellTraits.h
|
|
Flags.h
|
|
Geometry.h
|
|
GhostCell.h
|
|
Hash.h
|
|
ImplicitFunction.h
|
|
ListTag.h
|
|
Math.h
|
|
Matrix.h
|
|
NewtonsMethod.h
|
|
Pair.h
|
|
Range.h
|
|
RangeId.h
|
|
RangeId3.h
|
|
StaticAssert.h
|
|
Swap.h
|
|
TopologyElementTag.h
|
|
Transform3D.h
|
|
TypeListTag.h
|
|
Types.h
|
|
TypeTraits.h
|
|
VecAxisAlignedPointCoordinates.h
|
|
VecFromPortal.h
|
|
VecFromPortalPermute.h
|
|
VectorAnalysis.h
|
|
VecTraits.h
|
|
VecVariable.h
|
|
VirtualObjectBase.h
|
|
UnaryPredicates.h
|
|
)
|
|
|
|
set(template_sources
|
|
Geometry.hxx
|
|
)
|
|
|
|
vtkm_pyexpander_generated_file(Math.h)
|
|
|
|
vtkm_declare_headers(
|
|
${headers}
|
|
${template_sources}
|
|
EXCLUDE_FROM_TESTING
|
|
${template_sources}
|
|
)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
#first add all the components vtkm that are shared between control and exec
|
|
add_subdirectory(thirdparty/diy)
|
|
add_subdirectory(thirdparty/taotuple)
|
|
if(VTKm_ENABLE_LOGGING)
|
|
add_subdirectory(thirdparty/loguru)
|
|
endif()
|
|
add_subdirectory(testing)
|
|
add_subdirectory(internal)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
#add the control and exec folders
|
|
add_subdirectory(cont)
|
|
add_subdirectory(exec)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
#add the worklet folder
|
|
add_subdirectory(worklet)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
#add the filter folder
|
|
add_subdirectory(filter)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
# Build rendering
|
|
add_subdirectory(rendering)
|
|
|
|
add_subdirectory(interop)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
#add the io folder
|
|
add_subdirectory(io)
|