rdeits / MeshCat.jl

WebGL-based 3D visualizer in Julia
MIT License
234 stars 43 forks source link

Visualizing mesh edges and vertices #152

Closed Kevin-Mattheus-Moerman closed 4 years ago

Kevin-Mattheus-Moerman commented 4 years ago

@rdeits

  1. Is it possible to turn on edges (and control their thickness and color)
  2. I know you can render point clouds but is it possible to render mesh vertices (nodes) on a mesh? E.g. as dots of a certain color?

Perhaps you can point me to more documentation.

Thanks

Kevin-Mattheus-Moerman commented 4 years ago

@rdeits can you help with the above query? Thanks

rdeits commented 4 years ago

Sure, happy to help! I realized that wireframe support wasn't working, but it will be fixed in #163 which should be merged later today. The only limitation is that you have to draw the object three times: once as the object itself, once as a wireframe, and once as a collection of points. I don't know of any way to tell Three.js to render the object both as a solid and as a wireframe at the same time otherwise.

Fortunately, it's easy to wrap that up as a function, as I've done in that PR. I'm also going to play around with generating proper documentation, since it's overdue.

Kevin-Mattheus-Moerman commented 4 years ago

Great @rdeits thanks. I'll test it shortly.

Kevin-Mattheus-Moerman commented 4 years ago

I commented over at https://github.com/rdeits/MeshCat.jl/pull/163