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
15.2: Plot 3D Surface and Contour Plots - Engineering LibreTexts
raster - Create a 3D topographic map with locations marked on the map using R - Geographic Information Systems Stack Exchange
Creating 3D Plots in R Programming - persp() Function - GeeksforGeeks
Plot 3-D surface - MATLAB fsurf
How to Add a permanent contour line to a surface plot in R plotly - GeeksforGeeks
From 3D Contour Plots to AI-Generated Art - Machine Learning Techniques
Create Maps and Visualize Data in 2D and 3D • rayshader
15.2: Plot 3D Surface and Contour Plots - Engineering LibreTexts
Transform ggplot2 objects into 3D — plot_gg • rayshader