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
4
votes
1 answer

Changing color range 3d plot Matplotlib

I am trying to make a 3d plot but the color range is so small that it only covers a small portion of the values that the z-axis can have. How do I fix this? I attach the code and the image that I get: fig = plt.figure() ax =…
4
votes
1 answer

C# WPF PowerModeChanged doesn't work on Surface

Testing the code bellow in a non-surface device works just fine but when I try in a surface, I only get notifications when I remove the power cable ('statusChange' powerMode is triggered). Putting the surface in SLEEP the handler it's not called…
yozef
  • 43
  • 4
4
votes
1 answer

Understanding of NurbsSurface

I want to create a NurbsSurface in OpenGL. I use a grid of control points size of 40x48. Besides I create indices in order to determine the order of vertices. In this way I created my surface of triangles. Just to avoid misunderstandings. I have…
TimDor
  • 49
  • 1
  • 8
4
votes
0 answers

Algorithm to constrain moving point onto 3d surface

I'm not really sure where to start looking for info about this question, so I'm asking here. Hopefully it's not too general. I've written a particle library in C++ and am trying to add the ability to constrain particles to the surface of a mesh. Not…
Tyson
  • 1,226
  • 1
  • 10
  • 33
4
votes
1 answer

3d surface triangulation of an open surface with CGAL

I'm a newbie to CGAL library. However, I think it's a very suitable package for what I want to do. I have a set of points representing a 3D surface (as shown in figure 1). I want to fit a 3d triangulation on this surface. The surface is not closed…
Alibemz
  • 115
  • 1
  • 7
4
votes
1 answer

plotting a 2d function as surface in 3d space with `Plots.jl`

I have the following problem while plotting with Plots.jl. I like to plot the rosenbrock function rosenbrock(x) = (1.0 - x[1])^2 + 100.0 * (x[2] - x[1]^2)^2 as surface, which expects a 2d Tuple{Float64,Float64} as input. What I could come up with,…
swiesend
  • 1,051
  • 1
  • 13
  • 23
4
votes
1 answer

Processing Frames from Mediacodec Output and Update the Frames on Android

I am doing a project on image processing stuff. I receive a raw h264 video stream in real time and decode it using MediaCodec. I have successfully displayed the decoded video on a TextureView or SurfaceView. Now I want to process each frame, do…
Vitt Volt
  • 337
  • 4
  • 17
4
votes
1 answer

Google Maps API: How to calculate the building surface area?

In google maps, we can see a building footprint displayed. But how can we get this building outlines details via the Google Maps API? I know you have an easy algorithm to calculate a surface area in m2 via maps, but there you have to put in your…
Shouse
  • 252
  • 5
  • 17
4
votes
1 answer

Assigning surfaces to zones based on the 3D regions they enclose

Given a set of surfaces in three-dimensional space, I am attempting to assign each surface to a zone referring to the smallest 3D region the set encloses, or no zone if this is not applicable. I also want to determine if a surface is an interface…
sschilli
  • 2,021
  • 1
  • 13
  • 33
4
votes
1 answer

Incorrect graph when trying to plot z = x + y with MATLAB

I am attempting to plot 3D surfaces in MATLAB, and I made use of meshgrid, similar to what the MATLAB tutorials said here: http://www.mathworks.com/help/matlab/ref/meshgrid.html I wrote a very simple three line script that I believed would produce…
user2570465
  • 2,437
  • 2
  • 18
  • 22
4
votes
0 answers

Detect MS Surface Virtual Keyboard in Javascript

Is there a way to detect when the virtual keyboard of the MS Surface is being displayed in a web page via Javascript. The virtual keyboard is covering up the active text field on a page, and I need to be able to detect this so that I can re-layout…
steve hannah
  • 4,586
  • 11
  • 18
4
votes
2 answers

ImageReader in Android needs too long time for one frame to be available

I am developing an Android App in which I'm using ImageReader to get image from a Surface. The surface's data is achieved from the VirtualDisplay when i record screen in Lollipop version. The problem is the image is available with very low rate (1…
nhanndt
  • 43
  • 1
  • 4
4
votes
0 answers

Overlay of 3D surface with contours in Python / matplotlib

I want a numpy array plotted as a 3D surface and the zero contour line to be highlighted in a striking color. I use the following code to plot the surface (k_mean is the array to be plotted): fig = plt.figure() ax =…
user3017048
  • 2,711
  • 3
  • 22
  • 32
4
votes
1 answer

Plot 3D surface plot with 4 array data in python

I am trying to plot a 3D surface plot using a data having 4 columns ie it would x , y ,z , c. the data shown below - 0.452 -172.799 -172.800 0.000000 0.452 -172.799 -158.400 -9.305322 0.452 -172.799 -144.000 -12.062071 0.452 -172.799 …
xyz123
  • 41
  • 3
4
votes
1 answer

mayavi mapping a discrete colorbar on a surface

I want to change the color of a surface depending on another value (an ID) that takes discrete values (so I need a discrete colorbar). In the simplified example below I have drawn a sphere with 3 different IDs: 0/red on the left 2/blue on the…