[Bug] Echarts-gl 3d曲面绘制垂直于X方向的点进行绘制的时候一旦超过5个点就绘制出现问题
Version
5.2.2
Link to Minimal Reproduction
https://raw.githubusercontent.com/qiuqiumon/EchartsLearning/main/fault3d.html
Steps to Reproduce
在绘制曲面时,垂直方向的点连接起来的时候发生bug,垂直于X方向的点进行绘制的时候一旦超过5个点就绘制出现问题,如下例子是可以绘制的, data: [ [1.0,0.1,1.5],[1.0,0.5,1.5],[1.0,0.6,1.5],[1.0,0.8,1.5],[1.0,0.9,1.5], [1.0,0.1,2.0],[1.0,0.5,2.0],[1.0,0.6,2.0],[1.0,0.8,2.0],[1.0,0.9,2.0], ], 再多一个点就出现了bug例如: data: [ [1.0,0.1,1.5],[1.0,0.5,1.5],[1.0,0.6,1.5],[1.0,0.8,1.5],[1.0,0.9,1.5],[1.0,1.0,1.5], [1.0,0.1,2.0],[1.0,0.5,2.0],[1.0,0.6,2.0],[1.0,0.8,2.0],[1.0,0.9,2.0],[1.0,1.0,2.0] ],
Current Behavior
在绘制曲面时,垂直方向的点连接起来的时候发生bug,垂直于X方向的点进行绘制的时候一旦超过5个点就绘制出现问题,如下例子是可以绘制的, data: [ [1.0,0.1,1.5],[1.0,0.5,1.5],[1.0,0.6,1.5],[1.0,0.8,1.5],[1.0,0.9,1.5], [1.0,0.1,2.0],[1.0,0.5,2.0],[1.0,0.6,2.0],[1.0,0.8,2.0],[1.0,0.9,2.0], ], 再多一个点就出现了bug例如: data: [ [1.0,0.1,1.5],[1.0,0.5,1.5],[1.0,0.6,1.5],[1.0,0.8,1.5],[1.0,0.9,1.5],[1.0,1.0,1.5], [1.0,0.1,2.0],[1.0,0.5,2.0],[1.0,0.6,2.0],[1.0,0.8,2.0],[1.0,0.9,2.0],[1.0,1.0,2.0] ],
Expected Behavior
垂直于X方向面上的点进行绘制时不出现bug
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
3D points [1.0,0.1,1.5],[ 1.0,0.5,1.5],[1.0,0.6,1.5],[1.0,0.8,1.5],[1.0,0.9,1.5],[1.0,1.0,1.5] represent a 3D line which could be safely drawn with first and last points only [1.0,0.1,1.5], [1.0,1.0,1.5]. Same goes for the second line - [1.0,0.1,2.0], [1.0,1.0,2.0]. These 4 points represent your surface - Demo.
Please pay attention to surface data in API. For each data row, X changes with a constant Y value. If you respect this hierarchical X,Y,Z order of change, surfaces come up fine. 📌 please close issue if problem solved.