Skip to content

Commit

Permalink
Merge pull request #59 from LLNL/feature/gunderman/bezier
Browse files Browse the repository at this point in the history
Feature/gunderman/bezier
  • Loading branch information
kennyweiss committed Aug 27, 2019
2 parents 898c9d2 + 16c2e9b commit 510743e
Show file tree
Hide file tree
Showing 12 changed files with 1,547 additions and 37 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ endif()
if (NOT BLT_CXX_STD)
set(BLT_CXX_STD "c++11" CACHE STRING "")
endif()
set(ENABLE_ASTYLE OFF CACHE BOOL "")

include(${BLT_SOURCE_DIR}/SetupBLT.cmake)

Expand Down
6 changes: 3 additions & 3 deletions src/axom/mint/tests/mint_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ void check_node_fields( IndexType n_nodes, const double* vx, const double* vy )
{
for ( IndexType i = 0 ; i < n_nodes ; ++i )
{
EXPECT_EQ( vx[ i ], std::cos( E * i ) );
EXPECT_EQ( vy[ i ], std::sin( E * E * i ) );
EXPECT_DOUBLE_EQ( vx[ i ], std::cos( E * i ) );
EXPECT_DOUBLE_EQ( vy[ i ], std::sin( E * E * i ) );
}
}

Expand Down Expand Up @@ -303,7 +303,7 @@ void check_cell_fields( IndexType n_cells, const double* p )
{
for ( IndexType i = 0 ; i < n_cells ; ++i )
{
EXPECT_EQ( p[ i ], std::cosh( E * i ) );
EXPECT_DOUBLE_EQ( p[ i ], std::cosh( E * i ) );
}
}

Expand Down
32 changes: 17 additions & 15 deletions src/axom/primal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@
# other Axom Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (BSD-3-Clause)
#------------------------------------------------------------------------------
# Primal -- Computational geometry primitives
#------------------------------------------------------------------------------

################################
#------------------------------------------------------------------------------
# Check necessary dependencies
################################
#------------------------------------------------------------------------------
axom_component_requires(NAME PRIMAL
COMPONENTS SLIC)

################################
#------------------------------------------------------------------------------
# Specify all headers/sources
################################
#------------------------------------------------------------------------------
set( primal_headers

## geometry
geometry/BezierCurve.hpp
geometry/BoundingBox.hpp
geometry/OrientedBoundingBox.hpp
geometry/OrientationResult.hpp
Expand All @@ -39,6 +43,7 @@ set( primal_headers
operators/in_sphere.hpp

operators/detail/clip_impl.hpp
operators/detail/intersect_bezier_impl.hpp
operators/detail/intersect_impl.hpp
)

Expand All @@ -48,9 +53,9 @@ set( primal_sources
operators/detail/intersect_impl.cpp
)

################################
# Make/Install the library
################################
#------------------------------------------------------------------------------
# Build and install the library
#------------------------------------------------------------------------------
set( primal_dependencies
core
slic
Expand All @@ -72,21 +77,18 @@ axom_install_component(NAME primal
HEADERS ${primal_headers}
)

################################
# add examples
################################
#------------------------------------------------------------------------------
# Add tests and examples
#------------------------------------------------------------------------------
if (AXOM_ENABLE_EXAMPLES)
add_subdirectory(examples)
endif()

################################
# add tests
################################
if (AXOM_ENABLE_TESTS)
add_subdirectory(tests)
endif()

################################
#------------------------------------------------------------------------------
# Add code checks
################################
#------------------------------------------------------------------------------
axom_add_code_checks(PREFIX primal)
3 changes: 3 additions & 0 deletions src/axom/primal/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# other Axom Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (BSD-3-Clause)
#------------------------------------------------------------------------------
# Primal examples
#------------------------------------------------------------------------------

set(primal_example_depends
core
Expand Down

0 comments on commit 510743e

Please sign in to comment.