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

R, How to change color of plotly 3d surface?

How do I change the colorscale from the default of purple to yellow? I tried adding color and colorscale parameters to add_trace(), but it throws up errors. Reproduceable code with default colors: library(plotly); library(reshape2);…
dkae
  • 293
  • 3
  • 11
6
votes
1 answer

Convert rectangle to surface in pygame

In my code it keeps giving me the error: pygame.surface.Surface.blit(a, (x1, y1)) TypeError: descriptor 'blit' requires a 'pygame.Surface' object but received a 'pygame.Rect'. Help! This is my code: import pygame import time pygame.init() screen…
henry
  • 103
  • 1
  • 7
6
votes
0 answers
6
votes
1 answer

Plot a 3d surface from a 'list of lists' using matplotlib

I've searched around for a bit, and whhile I can find many useful examples of meshgrid, none shhow clearly how I can get data from my list of lists into an acceptable form for any of the varied ways I've seen talked about. I'm a bit lost when it…
Matt Warren
  • 669
  • 8
  • 18
6
votes
1 answer

Lighting Stays with Animated Surface in Matlab

I'm attempting to animate a rotating sphere in Matlab, however the lighting on the sphere rotates with it. I instead want the sphere to rotate while the lighting remains fixed with the coordinate system. Here's a gif of what my code is currently…
joshchab
  • 63
  • 3
6
votes
4 answers

Volume of a 3D closed mesh car object

I have a 3D closed mesh car object having a surface made up triangles. I want to calculate its volume, center of volume and inertia tensor. Could you help me Regards. George
george
5
votes
0 answers

How to record an existing surface (not a PersistentSurface) using MediaRecorder

I'm trying to record the camera stream which I don't have access to. I'm only have access to a custom SurfaceView that gets the images from the camera preview and render the images. I would like to save the surface \ camera video into a file. I'm…
Aviram Fireberger
  • 3,910
  • 5
  • 50
  • 69
5
votes
1 answer

Plot 3D curve on top of 3D surface

I'm trying to plot a 3D curve on top of a 3D surface in Matplotlib, but when the curve is in front of the surface, it is barely visible (the curve is the image of the unit circle): There should be a green curve floating one unit above the…
tttapa
  • 1,397
  • 12
  • 26
5
votes
1 answer

Changing the position of an axis on a Axes3D

I am using mplot3d from the mpl_toolkits library. When displaying the 3D surface on the figure I'm realized the axis were not positioned as I wished they would. Let me show, I have added to the following screenshot the position of each axis: Is…
Ivan
  • 34,531
  • 8
  • 55
  • 100
5
votes
1 answer

Visualizing a multivariate normal distribution in 3 Dimensions

I am trying to visualise a multivariate normal distribution with matplotlib. I would like to produce something like this: I use the following code: from mpl_toolkits import mplot3d x = np.linspace(-1, 3, 100) y = np.linspace(0, 4, 100) X, Y =…
user8270077
  • 4,621
  • 17
  • 75
  • 140
5
votes
1 answer

How to compute inner control points for C2 continuous bicubic Bezier surface patches

I am trying to compute control points for a bicubic Bezier surface of smoothly joining tubes. This example gives 16 control points for a respective Bezier patch (in the syntax of OpenSCAD): [[[ 2 , 2 , 0], [2.5, 1.5, 0], [3.5, 1 , 0], [4, 1 ,…
Barvarian
  • 51
  • 2
5
votes
2 answers

MATLAB: Drawing atop a surface plot

I'm plotting an R^2 to R function in MATLAB as a surface plot, which I colormap and view from above. surf(X, Y, data); colormap(jet); colobar; view(2); It produces (with some additional code) something like though the true nature of the function…
Anti Earth
  • 4,671
  • 13
  • 52
  • 83
5
votes
1 answer

r plotly 3d surface plot issue

I am trying to plot a 3d surface plot based on these plotly examples When I try these examples on my dataset test_plotly = structure(list(Age = c(82L, 82L, 83L, 83L, 83L, 81L, 81L, 81L, 79L, 80L, 82L, 78L, 78L, 79L, 78L, 80L, 79L,…
King Frazier
  • 243
  • 3
  • 14
5
votes
2 answers

Android MediaCodec configure error, crash

I'm trying to use mediaCodec for creating mp4 video from openGl ES surface. I have an eglSurface, and the source surface of that eglSurface is MediaCodec input surface. I can have different sizes for eglSurface, and when one size (width or height)…
5
votes
1 answer

Displaying Contours in front of Surface in matplotlib

I've been looking around for answers but I can't seem to see why in my code I can't get the projected contours to show up "behind" the surface. from mpl_toolkits.mplot3d import axes3d import matplotlib.pyplot as plt from matplotlib import cm from…
Sorade
  • 915
  • 1
  • 14
  • 29
1 2
3
69 70