Skip to content

Commit

Permalink
Generat quad complex bases from decimated meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
iveevi committed Aug 22, 2023
1 parent 1ce7913 commit 1a040ae
Show file tree
Hide file tree
Showing 18 changed files with 2,454 additions and 143 deletions.
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@
[submodule "imgui"]
path = imgui
url = https://github.com/ocornut/imgui.git
[submodule "pybind11"]
path = pybind11
url = https://github.com/pybind/pybind11
[submodule "libigl"]
path = libigl
url = https://github.com/libigl/libigl.git
[submodule "polyscope"]
path = polyscope
url = https://github.com/nmwsharp/polyscope
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
find_package(OpenMP REQUIRED)
find_package(Vulkan REQUIRED)
find_package(glslang REQUIRED)
find_package(Eigen3 REQUIRED)

add_subdirectory(polyscope)

add_executable(nsc
nsc.cu
Expand All @@ -22,8 +25,13 @@ add_executable(nsc
imgui/backends/imgui_impl_vulkan.cpp
)

add_executable(decimate
decimate.cpp
)

target_link_libraries(nsc
glfw
cusparse
assimp
OpenMP::OpenMP_CXX
SPIRV
Expand All @@ -32,7 +40,15 @@ target_link_libraries(nsc
glslang::glslang-default-resource-limits
)

target_link_libraries(decimate
polyscope
assimp
OpenMP::OpenMP_CXX
)

include_directories(.
glm
imgui
libigl/include
${EIGEN3_INCLUDE_DIR}
)
11 changes: 11 additions & 0 deletions binder.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

PYBIND11_INCLUDE=$(python3 -m pybind11 --includes)
PYBIND11_LIB=mesh$(python3-config --extension-suffix)

INCLUDE='-I glm'

echo $PYBIND11_INCLUDE
echo $PYBIND11_LIB

clang++ -O3 -Wall -shared -std=c++17 -fPIC $INCLUDE $PYBIND11_INCLUDE bindings/mesh.cpp -o $PYBIND11_LIB -lassimp
Loading

0 comments on commit 1a040ae

Please sign in to comment.