surface

Abaqus script measure/calculate surface area

流过昼夜 提交于 2019-12-24 15:58:00
问题 Is there a way to measure/calculate the surface area of a generated model with abaqus ? I'm familiar with Tools -> Query... -> Mass properties in abaqus CAE or the scripting version: from abaqus import * prop=mdb.models['Model'].rootAssembly.getMassProperties() However, I cannot find an equal command for surface area. Appreciate the help! 回答1: The function getArea() returns the surface area of a set of faces. For example: a = mdb.models['Model-1'].rootAssembly a.getArea(a.instances['Part-1-1'

WPF application in Kiosk mode

ⅰ亾dé卋堺 提交于 2019-12-24 11:36:19
问题 I have a WPF application that uses a TabControl to display lets say Tab1, Tab2 and Tab3. 1) How can I enable this application to run in Kiosk mode on Surface tablet as well as Windows touch PC devices? 2) My second question : Is it possible to disable Tab1 and Tab2 in Kiosk mode? The user will have access to only Tab3 in Kiosk mode. Any help will be appreciated. Thanks. 回答1: The Windows 10 Kiosk mode is for Universal Windows Platform (UWP) apps only. WPF apps don’t qualify. Microsoft provides

Python 2D circular surface in 3D

一世执手 提交于 2019-12-24 09:39:50
问题 I am trying to generate the top/bottom of a cylindrical surface. I was able to obtain the lateral surface here: Generating a Cylindrical Surface with np.outer. I would like to use np.outer again for consistency. I thought I understood the answers in the link however if I understood correctly then the following should work: R = 5 h = 5 u = np.linspace(0, 2*np.pi, 100) x = R * np.outer(np.ones(np.size(u)), np.cos(u)) y = R * np.outer(np.ones(np.size(u)), np.sin(u)) z = h * np.outer(np.ones(np

Greyscale image in SDL2

痴心易碎 提交于 2019-12-24 03:07:10
问题 I have an array of uint8_t which represents a greyscale picture, where each pixel is one uint8_t . I would like to display this in a window using the SDL2 library. I have tried to create an SDL_Surface from the array by doing mSurface = SDL_CreateRGBSurfaceFrom(mData, mWidth, mHeight, 8, mWidth, 0xFF0000, 0xFF0000, 0xFF0000, 0xFF0000); However, the problem is that when a depth of 8 bits is passed to SDL_CreateRGBSurfaceFrom (as I have done here), according to the SDL2 wiki "If depth is 4 or 8

Surface SDK 2.0 touch events do not trigger on Surface Pro 2

霸气de小男生 提交于 2019-12-24 01:09:34
问题 I am trying to develop a touch-enabled application in C# that runs on Microsoft's Surface Pro 2. Searching suggests that the best tool to use for this is the Surface SDK 2.0, which I have installed on my development machine. I have also installed the Surface Runtime on the device itself. I am able to run and use all the sample applications packaged with the Surface SDK on my Windows 7 dev machine using the Input Simulator tool, but when I attempt to run the sample apps on the Surface Pro 2,

How does an output surface of a Decoder is passed to an input surface of an Encoder?

六月ゝ 毕业季﹏ 提交于 2019-12-23 15:42:24
问题 I'm trying to understand how the surface-to-surface approach works with MediaCodec. In a ByteBuffer only approach, decoded data is placed in OutputBuffers. This non-encoded data can be processed manually then passed to the InputBuffers of an Encoder. If we give a look at an example from Android MediaCodec CTS using a surface to surface approach to pass data between a decoder and an encoder, we configure the Decoder to output the decoded data onto a Surface called outputSurface, and we

matplotlib 2D slice of 3D data

孤街浪徒 提交于 2019-12-23 09:36:27
问题 I haven't been able to find anything on this, maybe because I don't have the right nomenclature (i.e. I don't know exactly how to ask for it), but anyway, I have a 3D numpy array "a". I would like to identify and plot the 2D surface where a=0. To make clear, the data is double precision floats smoothly varying over 3D space. It is highly likely that the surface a=0 will "thread between" the points of the array, and not exactly lie right on any of them. So I need something that can interpolate

MATLAB - Plot multiple surface fits in one figure

三世轮回 提交于 2019-12-23 01:57:21
问题 I have 3 sets of 3D co-ordinates and I have fitted planes to each set. Now, I want to plot all the data points and the 3 planes in one figure. So far, I have the following function: function [fitresult, gof] = create_fit(xx, yy, zz, grp) [xData, yData, zData] = prepareSurfaceData( xx, yy, zz ); ft = fittype( 'poly11' ); opts = fitoptions( ft ); opts.Lower = [-Inf -Inf -Inf]; opts.Upper = [Inf Inf Inf]; hold on; % figure( 'Name', 'fit1' ); [fitresult, gof] = fit( [xData, yData], zData, ft,

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

心不动则不痛 提交于 2019-12-22 08:50:43
问题 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 between two zones. So, for example, if we had 11 surfaces representing two cubes stacked on top of each other, the surfaces in the top cube would be in the same zone and the surfaces in the bottom would be in a different zone (with the interface

MediaRecorder and VideoSource.SURFACE, stop failed: -1007 (a serious Android bug)

限于喜欢 提交于 2019-12-17 04:10:50
问题 I'm trying to record MediaRecorder without using Camera instance but using Surface video source (yes it's possible, but it turned out that it's not that perfect) - mediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); I just write what the issue: Next code works only on some devices and works temporary on some devices after a recent device rebooting or doesn't work at all If it doesn't work ok MediaRecorder.stop() method fails with the next error E/MediaRecorder: stop failed: -1007