Questions tagged [geometry-surface]

The mathematical or computing concept of a 2-dimensional shape.

Surface is a place of a manifold of two-dimensional points (flat surface) or surface is a continuous boundary which divide a three-dimensional space into two sections (curved surface). In general, a hypersurface is a variety of (n-1)-dimension points in n-dimensional space.

249 questions
22
votes
4 answers

Python 3D polynomial surface fit, order dependent

I am currently working with astronomical data among which I have comet images. I would like to remove the background sky gradient in these images due to the time of capture (twilight). The first program I developed to do so took user selected points…
21
votes
2 answers

Simplest way to plot 3d surface given 3d points

I have a lot (289) of 3d points with xyz coordinates which looks like: With plotting simply 3d space with points is OK, but I have trouble with surface There are some points: for i in range(30): output.write(str(X[i])+' '+str(Y[i])+'…
XuMuK
  • 564
  • 4
  • 11
  • 32
20
votes
1 answer

3d surface from a rectangular array of heights

I am trying to plot some HDF data in matplotlib. After importing them using h5py, the data is stored in a form of array, like this: array([[151, 176, 178], [121, 137, 130], [120, 125, 126]) In this case, x and y values are just the…
Paweł Rumian
  • 3,676
  • 3
  • 21
  • 27
15
votes
3 answers

Combining scatter plot with surface plot

How can I combine a 3D scatter plot with a 3D surface plot while keeping the surface plot transparent so that I can still see all the points?
xelda_serve
  • 161
  • 1
  • 1
  • 5
15
votes
1 answer

Doing readback from Direct3D textures and surfaces

I need to figure out how to get the data from D3D textures and surfaces back to system memory. What's the fastest way to do such things and how? Also if I only need one subrect, how can one read back only that portion without having to read back…
Baxissimo
  • 2,629
  • 2
  • 25
  • 23
14
votes
2 answers

3D surface plot from 2D matrix

Using a 2d matrix in R, how can I create a 3d surface plot, where columns=x, rows=y and the values are the heights in z? In the example below, x values would be 1:5, y value would be 1:5, and the numbers would represent heights/values in z. >…
dlv
  • 557
  • 1
  • 6
  • 14
13
votes
4 answers

Animation in MATLAB

How do I animate a surface if it's coordinates change in time (e.g. ellipsoid) using MATLAB?
Kate
  • 161
  • 1
  • 6
10
votes
2 answers

Texture mapping in MATLAB

I have points in 3D space and their corresponding 2D image points. How can I make a mesh out of the 3D points, then texture the triangle faces formed by the mesh?
worbel
  • 6,509
  • 13
  • 53
  • 63
9
votes
5 answers

Optimal trajectory over the surface of a sphere

I am trying to find the parametric equation of the trajectory of a point jumping over different spots on the surface of a unit sphere such that: each jump is small (pi/4 < d < pi/2) and in a narrow interval, e.g. [1.33, 1.34] the point visits most…
user2875617
9
votes
4 answers

PyGame: Applying transparency to an image with alpha?

I want to display an image with alpha with a specified transparency, but can't figure out how to do it. To elaborate on how I'm struggling with this, the blurb below is a slightly modified hunk of code from this SO answer, but if you run it, you'll…
Synthead
  • 2,162
  • 5
  • 22
  • 25
8
votes
12 answers

Is there any way to "clear" a surface?

Is there any way to clear a surface from anything that has been blitted to it?
Eric
  • 339
  • 2
  • 4
  • 6
8
votes
1 answer

Modelling an asteroid with Matplotlib using surface and wireframe

I am trying to model an asteroid using plot_surface and plot_wireframe. I have x y and z values for the points on the surface of the asteroid. The wireframe is accurate to the shape of the asteroid but the surface plot does not fit the wireframe.…
7
votes
1 answer

OpenGL Textures form SDLSurface goes too dark

I've quite the same problem than this OpenGl goes too dark but the answer doesn't work for me. I'm trying to display a image thanks to a surface converted to a texture and the result is too damn dark: Original: after openGL On the left is the…
Thomas Ayoub
  • 29,063
  • 15
  • 95
  • 142
6
votes
1 answer

Image correction for projection on surface with OpenCV

What is the best way in OpenCV to apply correction on an image projected to a 3D surface like in my examples or shown in Projection on 3D surface? My first tests with OpenCV checkerboard corner detection didn't looked very promising. If the camera…
bkausbk
  • 2,740
  • 1
  • 36
  • 52
6
votes
4 answers

How to plot geodesic curves on a surface embedded in 3D?

I have in mind this video, or this simulation, and I would like to reproduce the geodesic lines on some sort of surface in 3D, given by a function f(x,y), from some starting point. The midpoint method seems computationally and code intense, and so…
1
2 3
16 17