surface

How to plot 3D trajectory behind a surface?

北战南征 提交于 2019-12-13 20:08:08
问题 I'm trying to plot the trajectory of a photon orbiting a black hole. I'd like the photon to go behind the black hole and then in front of it (stable circular orbit). However I can't plot that, my photon is either in the foreground or in the background. I've tried using zorder but it didn't work fig = plt.figure() ax = fig.add_subplot(111, projection="3d") ax.set_aspect('equal') # black surface u = np.linspace(0, 2*np.pi, 100) v = np.linspace(0, 2*np.pi, 100) x = rs * np.outer(np.cos(u), np

Area under surface between two curves [duplicate]

拜拜、爱过 提交于 2019-12-13 10:25:50
问题 This question already has an answer here : Area between line and curve (no function) (1 answer) Closed 3 years ago . I want to determine the area between the red line and the blue line but only to the y-value of 4.559. How can I achieve that? 回答1: In general: First you have to subtract the two functions from each other. After that, you have a function that represents the delta in y for each point on the x-axis. After that you have to calculate the integral, for matlab you should look here

Generate a 3D surface plot by fitting over many 2D plots with varying z value

ぃ、小莉子 提交于 2019-12-13 09:28:59
问题 I would like to achieve a 3D surface plot. My outputs are as follows. For a particular value of z, I get y for each value of x (x ranges like 0:0.1:1.4 ). Then I vary z and, for the same range of x, I get y values. The result can be visualised as 2D plots at discrete z values, consisting of the range of x and its corresponding y. Here is my original plot: I would like to create a 3D surface plot instead, like a blanket wrapped over the above 2D plots. 回答1: Here's an example for the two types

Extract surface from matlab .fig

夙愿已清 提交于 2019-12-12 23:19:32
问题 I have a matlab .fig file which contains some points and a surface fitted to them. I want to extract the surface from the figure, and I would like to have both the vertices and the faces. Could you please provide me some hints on how to achieve this? My figure can be found here: https://drive.google.com/file/d/0By376R0mxORYU3JsRWw1WjllWHc/view?usp=sharing and I would like to extract the surface without the blue points. EDIT: it is not a duplicate, see my comment below as to why. 回答1: The data

How to get principal curvature of a given mesh?

我是研究僧i 提交于 2019-12-12 17:22:05
问题 I have a problem of getting principal curvatures from a given mesh (of a shape). I am trying to use 'patchcurvature' method from Matlab file exchange. However, the method always given the positive curvatures. I think it might be that the method considered the mesh as separate patches, and calculate the principal curvatures for each patch. [~,~,Dir1,Dir2,PrincipalCurvature1,PrincipalCurvature1]=patchcurvature(meshFaceVertices); I also tried to use another method from Matlab file exchange

3d surface triangulation of an open surface with CGAL

人走茶凉 提交于 2019-12-12 14:20:07
问题 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 and therefore does not occupy a volume. The code provided in poisson_reconstruction_example.cpp seems appropriate for this job. But the problem is that as a part of poisson_reconstruction algorithm it closes the ends and underneath of the surface to

Fail to run an app developed on desktop (Visual Studio 2015) on usb-connected “Surface 3”

会有一股神秘感。 提交于 2019-12-12 04:30:17
问题 I want to develop an application in Visual Studio 2015 on my desktop and run/test it on my Surface 3. I created a Blank application (Universal Windows) and I can run it on “local machine” but when trying to run it on “Device” I get the following error Error DEP6200 : Bootstrapping failed. Device cannot be found. 0x89731810: Deployment failed because no Windows Phone was detected. Make sure a phone is connected and powered on. App1 Both are running Windows 10 version 1511 (Build 10586.164).

Create a surface from “pre-gridded” points

女生的网名这么多〃 提交于 2019-12-12 04:23:42
问题 I have a large data.frame which has 3 variables Longitude , Latitude and Temp . The data is arranged so that it is regularly spaced on a "grid" of 1/4 degree - so that dput(head(dat)) gives: structure(list(Longitude = c(0.125, 0.375, 0.625, 0.875, 1.125, 1.375), Latitude = c(0.125, 0.125, 0.125, 0.125, 0.125, 0.125 ), Temp = c(25.2163, 25.1917, 25.1593, 25.125, 25.0908, 25.0612 )), .Names = c("Longitude", "Latitude", "Temp"), row.names = c(NA, 6L), class = "data.frame"). I am having problems

Actual time of “nativeGetTimestamp” in “SurfaceTexture”

余生颓废 提交于 2019-12-11 18:54:30
问题 I'm writing a video processing app and need to know the actual time of each frame. The app works fine at first when I used elapsedRealtime To compute the time offset: long timeOffset = java.lang.System.currentTimeMillis() - android.os.SystemClock.elapsedRealtime(); long actualTime = timestamp + timeOffset; But when I used another device, I found some device will use uptimeMillis for the SurfaceTexture.timestamp, so the code sould be: long timeOffset = java.lang.System.currentTimeMillis() -

Camera2 API: can it output two cameras into same surface?

半腔热情 提交于 2019-12-11 17:06:08
问题 I have specific requirement to connect signal from two Cameras into one surface. Each camera would fill half of the surface. The surface would be either displayed or reside in OpenGL texture. Is this at all possible using Camera2 API? First thing is specifying target rectangle for projection on surface, second thing is if two cameras can use single surface as output. Reason for this is that our hardware delivers one picture signal split into two Android cameras, and there is need to connect