Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
handle missing vertexcolor and facecolor in mesh3d
  • Loading branch information
archmoj committed Nov 14, 2019
commit c6c175e9e31383ba64ef88985c1df391ae861609
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"gl-heatmap2d": "^1.0.5",
"gl-line3d": "^1.1.11",
"gl-mat4": "^1.2.0",
"gl-mesh3d": "^2.1.1",
"gl-mesh3d": "^2.1.2",
"gl-plot2d": "^1.4.2",
"gl-plot3d": "^2.3.0",
"gl-pointcloud2d": "^1.0.2",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions test/image/mocks/gl3d_mesh3d-mising-colors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"data": [{
"x": [0, 1, 0, 1, 0, 1, 0, 1],
"y": [0, 0, 1, 1, 0, 0, 1, 1],
"z": [0, 0, 0, 0, 1, 1, 1, 1],
"i": [0, 3, 4, 7, 0, 6, 1, 7, 0, 5, 2, 7],
"j": [1, 2, 5, 6, 2, 4, 3, 5, 4, 1, 6, 3],
"k": [3, 0, 7, 4, 6, 0, 7, 1, 5, 0, 7, 2],
"flatshading": true,
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
"opacity": 1,
"vertexcolor": ["#F00", "#FF0", "#0F0", "#0FF", "#00F", "#F0F"],
"type": "mesh3d",
"name": "mesh3d",
"scene": "scene1"
}, {
"x": [0, 1, 0, 1, 0, 1, 0, 1],
"y": [0, 0, 1, 1, 0, 0, 1, 1],
"z": [0, 0, 0, 0, 1, 1, 1, 1],
"i": [0, 3, 4, 7, 0, 6, 1, 7, 0, 5, 2, 7],
"j": [1, 2, 5, 6, 2, 4, 3, 5, 4, 1, 6, 3],
"k": [3, 0, 7, 4, 6, 0, 7, 1, 5, 0, 7, 2],
"flatshading": true,
"lightposition": { "x": 1000, "y": 1000, "z": 0 },
"opacity": 1,
"facecolor": ["#F00", "#FF0", "#0F0", "#0FF", "#00F", "#F0F"],
"type": "mesh3d",
"name": "mesh3d",
"scene": "scene2"
}],
"layout": {
"paper_bgcolor": "#ddd",
"margin": {
"t": 0,
"b": 0,
"l": 0,
"r": 0
},
"width": 250,
"height": 500,
"scene1": {
"domain": {
"x": [0, 1],
"y": [0, 0.5]
},
"camera": { "eye": { "x": 1.5, "y": 3, "z": 1 } }
},
"scene2": {
"domain": {
"x": [0, 1],
"y": [0.5, 1]
},
"camera": { "eye": { "x": 1.5, "y": 3, "z": 1 } }
}
}
}