From 6e7dff64e8854be7e87dcc462507571ae99010b3 Mon Sep 17 00:00:00 2001 From: Neil Vaytet <39047984+nvaytet@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:03:04 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jan-Lukas Wynen --- docs/user-guide/plot-types/mesh3d-plot.ipynb | 2 +- src/plopp/backends/pythreejs/mesh3d.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/user-guide/plot-types/mesh3d-plot.ipynb b/docs/user-guide/plot-types/mesh3d-plot.ipynb index a4ee81c5..08a837d1 100644 --- a/docs/user-guide/plot-types/mesh3d-plot.ipynb +++ b/docs/user-guide/plot-types/mesh3d-plot.ipynb @@ -7,7 +7,7 @@ "source": [ "# 3D mesh plot\n", "\n", - "This notebook illustrates how to render 3D meshes,\n", + "This notebook illustrates how to render 3D meshes\n", "by supplying a list of vertex positions and vertex indices to construct the mesh faces." ] }, diff --git a/src/plopp/backends/pythreejs/mesh3d.py b/src/plopp/backends/pythreejs/mesh3d.py index d9a80788..906d18d9 100644 --- a/src/plopp/backends/pythreejs/mesh3d.py +++ b/src/plopp/backends/pythreejs/mesh3d.py @@ -24,6 +24,7 @@ class Mesh3d: data: The initial data to create the mesh from. Must be a DataGroup that contains at least the following fields: + - vertices: a DataArray with the vertices of the mesh. - faces: a DataArray with the faces of the mesh. color: