I have published version 1.8.0.2 of the glTF-BinExporter plugin to the PackageManager. It includes the glTF Import plugin. This first iteration is likely to be a bit rough around the edges so please inform me of any issues you find.
Hi there
I notice that the gltf2 plugin exports layers but no curves. When will that be possible? The shapeDiver plugin can export curves, but then no layers
So it must be possible to have them both
Keep up the good work
Marc
Support for curves in glTF is very primitive. It only supports drawing them with a width of a single pixel and as polylines. The underlying NURBS curve would have to be meshed and any fancy styling would be lost. I have an open issue here.
The problem is not the curves. The curves i’m using are straight lines, orthogonal, one pixel, only 2 endpoints, so very primitive.
The problem is that they do show up, depending on the file format and their options. But when the curves show, the layer structure from rhino is gone.
And when i change the file format and their options to make the layer structure show up, the curves are gone!
Can you tell me how to mesh a primitive curve? You’re talking about the “Pipe” command?
Meshing a curve means converting a NURBS curve to a polyline representation similar to the way a surface is converted to a mesh. I’ll add support for importing lines/polylines to glTF import plugin since they’re in the specification. As for export I’ll add support for saving lines/polylines from Rhino. If there’s more requests for it I’ll look into meshing NURBS curves for export as well.