Initial native OpenSim viewer prototype
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
Geometry/*.vtp filter=lfs diff=lfs merge=lfs -text
|
||||
Geometry/*.obj filter=lfs diff=lfs merge=lfs -text
|
||||
Geometry/*.stl filter=lfs diff=lfs merge=lfs -text
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
# Prerequisites
|
||||
*.d
|
||||
|
||||
# Compiled Object files
|
||||
*.slo
|
||||
*.lo
|
||||
*.o
|
||||
*.obj
|
||||
|
||||
# Precompiled Headers
|
||||
*.gch
|
||||
*.pch
|
||||
|
||||
# Compiled Dynamic libraries
|
||||
*.so
|
||||
*.dylib
|
||||
*.dll
|
||||
|
||||
# Fortran module files
|
||||
*.mod
|
||||
*.smod
|
||||
|
||||
# Compiled Static libraries
|
||||
*.lai
|
||||
*.la
|
||||
*.a
|
||||
*.lib
|
||||
|
||||
# Executables
|
||||
*.exe
|
||||
*.out
|
||||
*.app
|
||||
|
||||
# Local build/output dirs
|
||||
build/
|
||||
cmake-build-*/
|
||||
.cache/
|
||||
.idea/
|
||||
.vscode/
|
||||
|
||||
# CMake generated files
|
||||
CMakeCache.txt
|
||||
CMakeFiles/
|
||||
compile_commands.json
|
||||
Makefile
|
||||
cmake_install.cmake
|
||||
Testing/
|
||||
@@ -0,0 +1,50 @@
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
project(osim_magnum_viewer LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
|
||||
|
||||
set(OPENSIM_DEFAULT_DIR "/home/crosstyan/Code/opensim-core-build/install/lib/cmake/OpenSim")
|
||||
set(OpenSim_DIR "${OPENSIM_DEFAULT_DIR}" CACHE PATH "Path to OpenSimConfig.cmake")
|
||||
|
||||
find_package(OpenSim REQUIRED PATHS "${OpenSim_DIR}")
|
||||
|
||||
add_subdirectory(third_party)
|
||||
|
||||
add_executable(osim-magnum-viewer
|
||||
src/main.cpp
|
||||
src/ViewerApp.cpp
|
||||
src/OrbitCameraController.cpp
|
||||
src/OpenSimLoader.cpp
|
||||
)
|
||||
|
||||
target_include_directories(osim-magnum-viewer PRIVATE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/src"
|
||||
)
|
||||
|
||||
target_compile_definitions(osim-magnum-viewer PRIVATE
|
||||
OSIM_VIEWER_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
)
|
||||
|
||||
target_link_libraries(osim-magnum-viewer PRIVATE
|
||||
CLI11::CLI11
|
||||
Corrade::Main
|
||||
Magnum::Sdl2Application
|
||||
Magnum::GL
|
||||
Magnum::Magnum
|
||||
Magnum::MeshTools
|
||||
Magnum::Primitives
|
||||
Magnum::SceneGraph
|
||||
Magnum::Shaders
|
||||
MagnumIntegration::ImGui
|
||||
${OpenSim_LIBRARIES}
|
||||
)
|
||||
|
||||
if(TARGET spdlog::spdlog)
|
||||
target_link_libraries(osim-magnum-viewer PRIVATE spdlog::spdlog)
|
||||
endif()
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@@ -0,0 +1,16 @@
|
||||
# Fixing missing polygons
|
||||
|
||||
(1) Download Paraview and open .vtp file.
|
||||
|
||||
(3) Use hotkey (S) to switch on polygon selection, select incorrect polygons.
|
||||
|
||||
(4) Open Paraview Selection Display Inspector, select the Point Labels and ID. The selected Polygons will now show their coordinates.
|
||||
|
||||
(5) Open the .vtp file in a text editor and search for the three numbers seen in Paraview. Switch the 1st and 3rd numbers.
|
||||
|
||||
36 120 210 -> 210 10 210
|
||||
|
||||
There may be one or two sets of with these three numbers, change all.
|
||||
|
||||
36 120 210 -> 210 120 210
|
||||
210 36 120 -> 120 36 210
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
LFS
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user