Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using PointsMaterial #58

Closed
pvazteixeira opened this issue Aug 28, 2018 · 3 comments · Fixed by #59
Closed

using PointsMaterial #58

pvazteixeira opened this issue Aug 28, 2018 · 3 comments · Fixed by #59

Comments

@pvazteixeira
Copy link

Trying to control the size of the points in a PointCloud using PointsMaterial, I'm getting several triangles in the viewer instead:

triangles

Here's the code I used:

using MeshCat
vis = Visualizer()
open(vis)

using ColorTypes, GeometryTypes
material = PointsMaterial(color=RGBA(0,0,1,0.5))
verts =rand(Point3f0,100)
setobject!(vis[:PointCloud],PointCloud(verts),material)
@rdeits
Copy link
Owner

rdeits commented Aug 28, 2018

Ah, sorry about that. Can you try setobject!(..., Points(PointCloud(verts), material))) ?

@pvazteixeira
Copy link
Author

That works, thanks! I was following the setobject!(vis, obj, material) syntax from the example.

@rdeits
Copy link
Owner

rdeits commented Aug 28, 2018

Yeah, that's reasonable. I'll fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants