Skip to content

Commit 36f571d

Browse files
committed
added implementation of the paper Kugelstadt, Schoemer, "Position and Orientation Based Cosserat Rods", SCA 2016 and a corresponding demo
1 parent a20d272 commit 36f571d

18 files changed

+1277
-57
lines changed

Changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- added implementation of the paper Kugelstadt, Schoemer, "Position and Orientation Based Cosserat Rods", SCA 2016 and a corresponding demo
12
- update to Eigen 3.3
23

34
1.5.1

Demos/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ add_definitions(-DPBD_DATA_PATH="../data")
55
set(PBD_DEMOS
66
BarDemo
77
ClothDemo
8+
CosseratRodsDemo
89
CouplingDemos
910
DistanceFieldDemos
1011
FluidDemo

Demos/CosseratRodsDemo/CMakeLists.txt

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
set(SIMULATION_LINK_LIBRARIES AntTweakBar glew PositionBasedDynamics Simulation Utils)
2+
set(SIMULATION_DEPENDENCIES AntTweakBar glew PositionBasedDynamics Simulation Utils)
3+
4+
if(WIN32)
5+
set(SIMULATION_LINK_LIBRARIES freeglut opengl32.lib glu32.lib ${SIMULATION_LINK_LIBRARIES})
6+
set(SIMULATION_DEPENDENCIES freeglut ${SIMULATION_DEPENDENCIES})
7+
else()
8+
find_package(GLUT REQUIRED)
9+
find_package(OpenGL REQUIRED)
10+
11+
set(SIMULATION_LINK_LIBRARIES
12+
${SIMULATION_LINK_LIBRARIES}
13+
${GLUT_LIBRARIES}
14+
${OPENGL_LIBRARIES}
15+
)
16+
endif()
17+
18+
add_executable(CosseratRodsDemo
19+
main.cpp
20+
21+
${VIS_FILES}
22+
${PROJECT_PATH}/Common/Common.h
23+
24+
CMakeLists.txt
25+
)
26+
27+
add_definitions(-DTW_NO_LIB_PRAGMA -DTW_STATIC)
28+
29+
find_package( Eigen3 REQUIRED )
30+
include_directories( ${EIGEN3_INCLUDE_DIR} )
31+
include_directories(${PROJECT_PATH}/extern/freeglut/include)
32+
include_directories(${PROJECT_PATH}/extern/glew/include)
33+
34+
set_target_properties(CosseratRodsDemo PROPERTIES FOLDER "Demos")
35+
set_target_properties(CosseratRodsDemo PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
36+
set_target_properties(CosseratRodsDemo PROPERTIES RELWITHDEBINFO_POSTFIX ${CMAKE_RELWITHDEBINFO_POSTFIX})
37+
set_target_properties(CosseratRodsDemo PROPERTIES MINSIZEREL_POSTFIX ${CMAKE_MINSIZEREL_POSTFIX})
38+
add_dependencies(CosseratRodsDemo ${SIMULATION_DEPENDENCIES})
39+
target_link_libraries(CosseratRodsDemo ${SIMULATION_LINK_LIBRARIES})
40+
VIS_SOURCE_GROUPS()

0 commit comments

Comments
 (0)