Hi @alex and all,
I know we can already send color and width of lines to the viewer, which is great, and I am wondering if line types such as dotted/axis/etc. have already been implemented, or on the roadmap?
Thanks
Depends on what you are planning to do. The current data model for lines only supports color and width. However, the viewer library additionally supports dotted lines to some extent. So depending on your use case you might be able to use them.
What did you have in mind? Also, I’m not sure what ‘axis’ means in this case
Cheers
Thanks @alex !
Woo that’s already a really good news!
By axis I mean that :
In a perfect world we have the following styles :
The usecase is the Geometry viewer :
I can ask Ahmed to store the style data somewhere I can get it. But then in the viewer library how to get the dotted style?
I just has a look into making an example for you but realized the viewer library does not export SpeckleLineMaterial
which you would need to make lines dotted.
Additionally, a few improvements could be made to the current line batching mechanism and material usage in order to make switching between different line styles easier and more robust. It would help me a lot if you explained a bit more what your use case for dashed lines.
I’ll need to make a PR for this, which at the very least exports the line material type but we won’t be making a release until at least a couple of weeks
Cheers
Thanks @alex
The usecase is to publish figures as this one from Prof. Bernard Cache :
The figures are quite complex so we use different types, colors and width of lines