Skip to content

Commit

Permalink
Simple mesh viewer with thick points and lines (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
xelatihy authored Aug 15, 2020
1 parent fb150cc commit 731539d
Show file tree
Hide file tree
Showing 10 changed files with 5,768 additions and 15 deletions.
1 change: 1 addition & 0 deletions apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ add_subdirectory(ysceneitrace)
add_subdirectory(ysceneitraces)
add_subdirectory(yimageview)
add_subdirectory(yimageviews)
add_subdirectory(yshapeview)
endif(YOCTO_OPENGL)

if(YOCTO_DENOISE)
Expand Down
2 changes: 1 addition & 1 deletion apps/ysceneview/ysceneview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void init_glscene(ogl_scene* glscene, scene_model* ioscene,
// shapes
for (auto ioinstance : ioscene->instances) {
if (progress_cb) progress_cb("convert instance", progress.x++, progress.y);
auto globject = add_object(glscene);
auto globject = add_instance(glscene);
set_frame(globject, ioinstance->frame);
set_shape(globject, shape_map.at(ioinstance->shape));
set_material(globject, material_map.at(ioinstance->material));
Expand Down
2 changes: 1 addition & 1 deletion apps/ysceneviews/ysceneviews.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void init_glscene(ogl_scene* glscene, scene_model* ioscene,
// shapes
for (auto ioobject : ioscene->instances) {
if (progress_cb) progress_cb("convert instance", progress.x++, progress.y);
auto globject = add_object(glscene);
auto globject = add_instance(glscene);
set_frame(globject, ioobject->frame);
set_shape(globject, shape_map.at(ioobject->shape));
set_material(globject, material_map.at(ioobject->material));
Expand Down
6 changes: 6 additions & 0 deletions apps/yshapeview/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
add_executable(yshapeview yshapeview.cpp)

set_target_properties(yshapeview PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED YES)
target_include_directories(yshapeview PRIVATE ${CMAKE_SOURCE_DIR}/libs)
target_link_libraries(yshapeview yocto yocto_gui)

Loading

0 comments on commit 731539d

Please sign in to comment.