Skip to content

Commit 2e4c551

Browse files
authored
More APIC examples with curved boundaries (#90)
1 parent e677840 commit 2e4c551

15 files changed

Lines changed: 652 additions & 513535 deletions

File tree

CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,21 @@ endif()
3939
# Overrides
4040
set(CMAKE_MACOSX_RPATH ON)
4141

42+
# Unpack resources
43+
set(RESOURCES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/resources)
44+
set(RESOURCES_OBJS
45+
${RESOURCES_DIR}/bunny.obj
46+
${RESOURCES_DIR}/cube.obj
47+
${RESOURCES_DIR}/cup.obj
48+
${RESOURCES_DIR}/dragon.obj)
49+
set(unzip_py ${CMAKE_CURRENT_SOURCE_DIR}/scripts/unzip.py)
50+
add_custom_command(
51+
COMMAND python ${unzip_py} ${RESOURCES_DIR}/resources.zip ${RESOURCES_DIR}
52+
DEPENDS ${headers}
53+
OUTPUT ${RESOURCES_OBJS})
54+
add_custom_target(unzip_py ALL
55+
DEPENDS ${RESOURCES_OBJS})
56+
4257
# Project modules
4358
add_subdirectory(external/cnpy)
4459
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

include/jet/implicit_triangle_mesh3.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class ImplicitTriangleMesh3 final : public ImplicitSurface3 {
3939
//! Returns builder fox ImplicitTriangleMesh3.
4040
static Builder builder();
4141

42+
//! Returns grid data.
43+
const VertexCenteredScalarGrid3& grid() const;
44+
4245
private:
4346
TriangleMesh3Ptr _mesh;
4447
VertexCenteredScalarGrid3 _grid;

0 commit comments

Comments
 (0)