-
Notifications
You must be signed in to change notification settings - Fork 43
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
Is it possible to draw curves? #253
Comments
Hi Davi, you can draw curved lines (see this comment and an example here) and contours as well (see the README example). |
Thanks for the answer @ferrolho . If I understood, is your solution for curved lines to divide in several line segments? I was looking for Bezier curves and the like. |
Yes, you understood correctly — I sample a few points along the curved line I want to display, and then display it. It seems three.js supports quadratic bezier curves (see https://threejs.org/docs/#api/en/extras/curves/QuadraticBezierCurve), but I don't think this feature is exposed in MeshCat.jl. If you give it a go, please feel free to open a PR. Thanks! |
Thanks, I'll try to do so. |
@ferrolho , the implementation of curves should be done on MeshCat.jl or on the original meshcat library? |
I am not sure why I missed your comment... So, apologies for the really long delay in replying. Exposing something from three.js to meshcat will have to be done in the core library — https://github.com/meshcat-dev/meshcat. Then, once that is exposed, you should be able to use it from MeshCat.jl or meshcat-python. |
In three.js, I see that it is possible to draw curves, such as Beziers and Nurbs. Moreover, one can even draw curved surfaces. I was wondering if there is a way to do this using meshcat.
The text was updated successfully, but these errors were encountered: