THREE.MeshLine
THREE.MeshLine copied to clipboard
MeshLine has a maximum size
I have an object that has 140,000 vertices and the MeshLine isn't drawing the entire object, but doesn't give an error or warning.
The size of the MeshLine seems to be limited to a geometry size of 2^15 (32,678) vertices as far as I can tell See this example: http://jsfiddle.net/tvdvd/16jnyf35/10/
I put a yellow ring where the size of the spiral hits 32,678 vertices. Try changing numVerts
to above and below that number and the spiral doesnt grow beyond that number.
Seems like this is a WebGL limitation (65k vertices--https://stackoverflow.com/questions/4998278/is-there-a-limit-of-vertices-in-webgl). Maybe worth noting in the documentation.
I am facing the same issue i am shouting out for help.
You can make chunks of the vertices and could pass data to meshline for sure there will be more object of meshline in case huge data. I have solved this problem by iterating through loop and made chunks of data. As Meshline can process 32678 points i.e. 10891 vertices . So Made chunks of 10891 vertices and called meshline constructor multiple times. Works well in my case
The chunking approach works well. I also realized that I could simplify/decimate my geometry beforehand because I didn't need that level of detail, reducing the number of vertices.