When I add Line entities to a new scene, they do not show up in the exported GLTF or GLB file (I tried both.) If the line is the only entity in the scene, the resulting GLTF/GLB fails validation using KhronosGroup/glTF-Validator. I am using aspose 20.3.
Here is the code to reproduce:
var scene = new Scene();
double
x1 = 0,
y1 = 0,
z1 = 0,
x2 = 10,
y2 = 10,
z2 = 10;
var line = new Line("LineEntity");
line.Excluded = false;
line.Visible = true;
line.ControlPoints.Add(new Vector4(x1, y1, z1));
line.ControlPoints.Add(new Vector4(x2, y2, z2));
line.Segments.Add(new int[] { 0, 1 });
line.Color = new Vector3(1, 0, 0);
scene.RootNode.CreateChildNode("LineNode", line);
var saveOpts = new GLTFSaveOptions(Aspose.ThreeD.FileContentType.ASCII);
saveOpts.EmbedAssets = true;
var fmt = saveOpts.FileFormat;
scene.Save($"TestLine ({x1},{y1},{z1})-({x2},{y2},{z2}).gltf", saveOpts);