Questions tagged [surface]

A surface is a two-dimensional shape in a three-dimensional space.

A surface is a concept in geometry which roughly means a two-dimensional shape in a three-dimensional space.

For the Microsoft Surface tablets, see . For the Microsoft Pixelsense technology formerly known as Surface, see .

1044 questions
5
votes
1 answer

How to plot multiple regression 3D plot

Task : Plot the results of a multiple regression (z = f(x, y) ) as a two dimensional plane on a 3D graph (as I can using OSX’s graphing utility, for example, or as implemented here Plot Regression Surface with R). After a week searching…
user2738815
  • 1,196
  • 3
  • 12
  • 19
5
votes
1 answer

How To Program in Delphi for Microsoft's Surface Pen?

I'd like to integrate surface pen capabilities into my application. It's written using Delphi 10 Seattle. I've searched all over the web and can't find anything. Does anyone know how to program for the Pen? Specifically, to capture the pressure…
Steve Maughan
  • 1,174
  • 3
  • 19
  • 30
5
votes
3 answers

In SDL, does SDL_Quit() free every surface?

Basically, on surfaces that are going to exist right until the program terminates, do I need to run SDL_FreeSurface() for each of them, or would SDL_Quit() take care of all this for me? I ask mainly because the pointers to a number of my surfaces…
Lewis
  • 1,310
  • 1
  • 15
  • 28
5
votes
2 answers

3d surface plots not showing

I am trying to make a simple 3D surface plot with matplotlib but the plot does not show at the end; I only get empty 3D axes. Here is what I did: from mpl_toolkits.mplot3d import Axes3D x = np.arange(1, 100, 1) y = np.arange(1, 100, 1) z =…
Labibah
  • 5,371
  • 6
  • 25
  • 23
5
votes
2 answers

Removing the Water Tight-ness property from the mesh constructed by poisson reconstruction using Point Cloud Library

I would like to generate visually appealing surface reconstruction from the the point clouds. I am using point cloud library. I tried creating a mesh using poisson reconstruction method but later found that it gives a water tight reconstruction. For…
Sai
  • 377
  • 2
  • 7
  • 18
5
votes
2 answers

Plotting a 3d surface, given the vertices, inside a sphere

I have 6 points which all lie on the surface of a sphere and are the vertices of an octohedron. How can I plot the surface of this octohedron within the sphere on a 3d axes? I have the following code but it does not do what I was hoping: from…
Thomas Hopkins
  • 671
  • 2
  • 10
  • 20
5
votes
2 answers

Estimate the gradient of an undefined surface

I want to estimate the gradient (slope and aspect) of an undefined surface (i.e., the function is unknown). To test my methods, here is the test data: require(raster); require(rasterVis) set.seed(123) x <- runif(100, min = 0, max = 1) y…
Scott
  • 161
  • 8
5
votes
1 answer

How to draw on an X11 Drawable with Cairo in Haskell

I recently made my first steps in X11 programming in Haskell and now I want to draw texts using Cairo/Pango. I found some C tutorials and it seems as I need to create an Xlib surface using cairo_xlib_surface_create(). There is a Haskell wrapper for…
CAS
  • 51
  • 3
4
votes
1 answer

How to indicate a cropped colormap

I have a surface plot colored by a given function. For clarity, the colormap does not contain all of the values of the function, so the colormap is "cropped" at the ends. I want to indicate to the viewer that the colormap is incomplete ("cropped"),…
DeadlosZ
  • 165
  • 5
4
votes
1 answer

Surfaces with different colormaps

How can multiple surfaces be plotted on the axes but surfaces uses a different colormap?. Using colormap("...") changes it for the entire figure, not just a single surface. Thanks
jzz11
  • 47
  • 4
4
votes
1 answer

Plotting spheres of radius R

How can we make spheres of radius R centered at given coordinates(x,y,z). Like if there are 10 set of coordinates for the centers of the spheres and correspondingly 10 different values of the radii. How can we plot it in python ? Is there any way to…
Simrandeep Bahal
  • 109
  • 1
  • 2
  • 8
4
votes
1 answer

setting DirectX9 surface pixels

I'm trying to set the individual pixels in a D3DSURFACE9 but they're going all over the place. I think I've done this before but can't seem to get it right this time. 3DLOCKED_RECT lrt; if(D3D_OK ==…
user722132
  • 109
  • 1
  • 9
4
votes
1 answer

Compute a point on a spline surface

I am working on a control algorithm to be run on an embedded system. My programming language is C and the system will be pretty tightly constrained in terms of memory and processing power. I have a few (in the order of about 10) reference points in…
calamity
  • 41
  • 3
4
votes
0 answers

Mayavi : surface plot and 3D contours

Good evening everyone, I am a long time user of Matplotlib and I recently discovered Mayavi. With Matplotlib, I can plot a 3D surface with projected contours of the surface plot for each axis and I was wondering if the same could be done with…
Loïc Poncin
  • 511
  • 1
  • 11
  • 30
4
votes
1 answer

How to modify grid dimension in plotly?

I have a list of X values, a list of Y values, and for each pair (X,Y), I have a value Z in the form of a matrix. I want to represent it using plotly in python and modify the grid in which the surface is drawn so the x axis is larger than usual,…