The example code here for rgl does almost what I want. However my (x,y) are not in a rectangle but in a triangle that is half of the rectangle (x=0..1, y=0..1 and z is missing if x+y>1). My input
How to Add a permanent contour line to a surface plot in R plotly - GeeksforGeeks
Create Maps and Visualize Data in 2D and 3D • rayshader
ListSliceContourPlot3D—Wolfram Language Documentation
r - Adding Contour Lines to 3D Plots - Stack Overflow
Contour plot under mesh surface plot - MATLAB meshc
3D Contour Plotting in Python using Matplotlib - GeeksforGeeks
Applying Math with Python
plotting - How to plot ternary density plots? - Mathematica Stack Exchange
3D Plots in MATLAB - GeeksforGeeks
R tutorials, R plots, 3D surface plot, 3D meash,grid, 3D perspective plots in R
15.2: Plot 3D Surface and Contour Plots - Engineering LibreTexts
Surfaces and Grids in Matlab