Skip to content

Commit 233b94f

Browse files
committed
Update example to work with optional i,j,k
1 parent 5daee0b commit 233b94f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/3d_charts/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ fn mesh_3d_plot(show: bool) -> Plot {
172172
vec![0, 1, 2, 0],
173173
vec![0, 0, 1, 2],
174174
vec![0, 2, 0, 1],
175-
vec![0, 0, 0, 1],
176-
vec![1, 2, 3, 2],
177-
vec![2, 3, 1, 3],
175+
Some(vec![0, 0, 0, 1]),
176+
Some(vec![1, 2, 3, 2]),
177+
Some(vec![2, 3, 1, 3]),
178178
)
179179
.intensity(vec![0.0, 0.33, 0.66, 1.0])
180180
.color_scale(ColorScale::Palette(ColorScalePalette::Rainbow));

0 commit comments

Comments
 (0)