You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bindings/imgui_bundle/implot3d/__init__.pyi
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -639,22 +639,46 @@ def plot_quad(
639
639
) ->None:
640
640
pass
641
641
642
-
# IMPLOT3D_TMP void PlotSurface(const char* label_id, const T* xs, const T* ys, const T* zs, int x_count, int y_count, double scale_min = 0.0, double scale_max = 0.0, ImPlot3DSurfaceFlags flags = 0, int offset = 0, int stride = sizeof(T)); /* original C++ signature */
642
+
# [ADAPT_IMGUI_BUNDLE]
643
+
# #ifdef IMGUI_BUNDLE_PYTHON_API
644
+
#
645
+
# A version of PlotSurface whose API is easier to port to Python
646
+
# (params xs_count, ys_count and zs_count are removed in the Python API, but are used in the bindings code generation)
647
+
648
+
# IMPLOT3D_TMP void PlotSurface( /* original C++ signature */
649
+
# const char* label_id,
650
+
# const T* xs, int xs_count,
651
+
# const T* ys, int ys_count,
652
+
# const T* zs, int zs_count,
653
+
# int x_count, int y_count,
654
+
# double scale_min = 0.0, double scale_max = 0.0,
655
+
# ImPlot3DSurfaceFlags flags = 0,
656
+
# int offset = 0,
657
+
# int stride = sizeof(T));
643
658
defplot_surface(
644
659
label_id: str,
645
660
xs: np.ndarray,
646
661
ys: np.ndarray,
647
662
zs: np.ndarray,
663
+
x_count: int,
648
664
y_count: int,
649
665
scale_min: float=0.0,
650
666
scale_max: float=0.0,
651
667
flags: SurfaceFlags=0,
652
668
offset: int=0,
653
669
stride: int=-1,
654
670
) ->None:
655
-
"""Plot the surface defined by a grid of vertices. The grid is defined by the x and y arrays, and the z array contains the height of each vertex. A total of x_count * y_count vertices are expected for each array. Leave #scale_min and #scale_max both at 0 for automatic color scaling, or set them to a predefined range."""
671
+
"""Plot the surface defined by a grid of vertices. The grid is defined by the x and y arrays,
672
+
and the z array contains the height of each vertex.
673
+
A total of x_count * y_count vertices are expected for each array.
674
+
Leave #scale_min and #scale_max both at 0 for automatic color scaling, or set them to a predefined range.
675
+
"""
656
676
pass
657
677
678
+
# #endif
679
+
#
680
+
# [/ADAPT_IMGUI_BUNDLE]
681
+
658
682
# IMPLOT3D_API void PlotMesh(const char* label_id, const ImPlot3DPoint* vtx, const unsigned int* idx, int vtx_count, int idx_count, ImPlot3DMeshFlags flags = 0); /* original C++ signature */
"Plot the surface defined by a grid of vertices. The grid is defined by the x and y arrays, and the z array contains the height of each vertex. A total of x_count * y_count vertices are expected for each array. Leave #scale_min and #scale_max both at 0 for automatic color scaling, or set them to a predefined range.");
" Plot the surface defined by a grid of vertices. The grid is defined by the x and y arrays,\n and the z array contains the height of each vertex.\n A total of x_count * y_count vertices are expected for each array.\n Leave #scale_min and #scale_max both at 0 for automatic color scaling, or set them to a predefined range.");
0 commit comments