Skip to content

Commit

Permalink
Add support for loading and rendering .ply point clouds
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Nov 9, 2024
1 parent 6ed1cd9 commit fc990cd
Show file tree
Hide file tree
Showing 11 changed files with 450 additions and 80 deletions.
1 change: 0 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: true
ColumnLimit: 89
CommentPragmas: '^ IWYU pragma:'
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "3rdparty/eigen"]
path = 3rdparty/eigen
url = https://gitlab.com/libeigen/eigen
[submodule "3rdparty/miniply"]
path = 3rdparty/miniply
url = https://github.com/vilya/miniply
1 change: 1 addition & 0 deletions 3rdparty/miniply
Submodule miniply added at 1a235c
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ add_library(
Threedim/ModelDisplay/Process.cpp
Threedim/ModelDisplay/Layer.hpp

3rdparty/miniply/miniply.cpp

score_addon_threedim.hpp
score_addon_threedim.cpp
)
Expand All @@ -94,6 +96,7 @@ target_include_directories(score_addon_threedim
3rdparty/libssynth/src
3rdparty/vcglib
3rdparty/eigen
3rdparty/miniply
)

target_link_libraries(score_addon_threedim
Expand Down
2 changes: 1 addition & 1 deletion Threedim/ModelDisplay/Executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ProcessExecutorComponent::ProcessExecutorComponent(
n->root_inputs().push_back(new ossia::texture_inlet);
n->root_inputs().push_back(new ossia::geometry_inlet);

for (std::size_t i = 2; i <= 7; i++)
for (std::size_t i = 2; i <= 8; i++)
{
auto ctrl = qobject_cast<Process::ControlInlet*>(element.inlets()[i]);
auto& p = n->add_control();
Expand Down
Loading

0 comments on commit fc990cd

Please sign in to comment.