JuliaGL / GLVisualize.jl

Visualization library written in Julia and OpenGL
Other
247 stars 34 forks source link

remove rendered object #72

Closed CarloLucibello closed 8 years ago

CarloLucibello commented 8 years ago

Since there is no example for this in the documentation, I'll ask here. How can I signal and implement the removal of one of the rendered object?

In my use case, for https://github.com/JuliaGraphs/GraphVisualize.jl, I'd like to signal the removal of an edge from a graph, therefore removing one of the segmente created by

lines  = visualize(gpu_position, :linesegment, indices=indices)

Can you point me to some way to do this? thanks

SimonDanisch commented 8 years ago

The easiest seems to be, if you just pass an index list to the points as well and then just remove indices. I updated the example! At some point it was possible to use splice! on the gpu array directly, but this currently introduces some complications.

SimonDanisch commented 8 years ago

5ab7bb067425dc69798ad3103ecd0f71f843fd03

CarloLucibello commented 8 years ago

ok thanks