Hi,
I have a feature request to optionally disable optimizations when loading a mesh. One example of this happening is when you load the following simple OBJ file:
v 0.0 0.0 0.0
v 10.0 0.0 0.0
v 0.0 10.0 0.0
v 10.0 10.0 0.0
f 1 2 3
When I load the model and log the vertex positions using .getVerticesData(BABYLON.VertexBuffer.PositionKind)
, I only see the first 3 vertices. I believe the 4th must be culled because it isn’t referenced by the index buffer. This optimization is great normally, but I have a specific use-case to leave such vertices in place. Specifically, I want the option to force the vertex and index buffers to reflect the input file exactly. So in the case of the above OBJ file, the vertex and index buffers should look as follows:
vertices = [0.0, 0.0, 0.0, 10.0, 0.0, 0.0, 0.0, 10.0, 0.0, 10.0, 10.0, 0.0]
indices = [1, 2, 3]
This feature request stems from this question I asked yesterday.