mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-06 18:38:59 +00:00
cdeeda67bb
Affine transformations of homogeneous coordinates using 4x4 matrices are quite common in visualization. Create a new math header file in the base vtkm namespace that has common functions for such coordinates. Much of this implementation was taken from the rendering matrix helpers.
89 lines
2.5 KiB
CMake
89 lines
2.5 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 Sandia Corporation.
|
|
## Copyright 2014 UT-Battelle, LLC.
|
|
## Copyright 2014 Los Alamos National Security.
|
|
##
|
|
## Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
|
|
## 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.
|
|
##============================================================================
|
|
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
|
|
set(headers
|
|
Assert.h
|
|
BinaryPredicates.h
|
|
BinaryOperators.h
|
|
Bounds.h
|
|
CellShape.h
|
|
CellTraits.h
|
|
ImplicitFunctions.h
|
|
ListTag.h
|
|
Math.h
|
|
Matrix.h
|
|
NewtonsMethod.h
|
|
Pair.h
|
|
Range.h
|
|
StaticAssert.h
|
|
TopologyElementTag.h
|
|
Transform3D.h
|
|
TypeListTag.h
|
|
Types.h
|
|
TypeTraits.h
|
|
VectorAnalysis.h
|
|
VecRectilinearPointCoordinates.h
|
|
VecTraits.h
|
|
VecVariable.h
|
|
UnaryPredicates.h
|
|
)
|
|
|
|
vtkm_pyexpander_generated_file(Math.h)
|
|
|
|
vtkm_declare_headers(${headers})
|
|
|
|
#-----------------------------------------------------------------------------
|
|
#first add all the components vtkm that are shared between control and exec
|
|
add_subdirectory(testing)
|
|
add_subdirectory(internal)
|
|
|
|
if(VTKm_ENABLE_OPENGL_INTEROP)
|
|
add_subdirectory(interop)
|
|
endif(VTKm_ENABLE_OPENGL_INTEROP)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
# Build rendering
|
|
if(VTKm_BUILD_RENDERING)
|
|
add_subdirectory(rendering)
|
|
endif(VTKm_BUILD_RENDERING)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
#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)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
#add the benchmarking folder
|
|
add_subdirectory(benchmarking)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
#add the io folder
|
|
add_subdirectory(io)
|