Description
Line element from Qt3D.Shapes 1.0 uses QGLBuilder.addTriangles() to create its geometry. Unfortunately there are some limitations according to the documentation of QGLBuilder:
"The data is broken into groups of 3 vertices, each processed as a triangle."
"If triangles has less than 3 vertices this function exits without doing anything. Any vertices at the end of the list under a multiple of 3 are ignored."
"In the case of a degenerate triangle, where the cross-product is null, that triangle is skipped."
In a word with these limitations, it isn't possible to create a simple line with 2 points, and in many cases the line will not be rendered with the expected behaviour.
QGLBuilder.addTriangle should have an alternate raw mode to bypass these rules without having to provide normals (actual RAW mode)