3d

AxAcroPDF control windows form hangs when closing the form

被刻印的时光 ゝ 提交于 2020-01-23 17:12:06
问题 I'm dealing with a windows forms .NET application written in C# which needs to display a 3D pdf with all the associated features (rotate the object, change lights and so on). I'm using the AxAcroPDF COM control and it run smoothly. The problem is that when I try to close the form where the control is placed, sometimes it hangs for several seconds with no apparent reason while disposing the control. The 3D file I loaded during the tests is not particulary heavy. The very same file in the

How to draw ellipsoid with plotly

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-23 12:59:14
问题 Are there any way to plot a surface like ellipsoid with plotly 3D? Currently only surfaces of the form z=f(x,y) are discussed in the docs. There is also Mesh 3D, but I found no examples for it. It seem to be possible to make a triangulation of ellipsoid manually and then use Mesh to get ellipsoid, but it looks a bit difficult for me. Are there any better way to do it? 回答1: Okay, it is easier than I thought. There is alphahull option that asks plotly to calculate the corresponding

Converting a STEP file into an STL

北慕城南 提交于 2020-01-23 12:57:29
问题 I am looking for suggestions on how to tackle the following problem: To convert a STEP (ISO 10303, AP 203/214) into a triangular mesh, i.e. into STL Obviously, STEP supports various exact representations of some smooth curves, for instance NURBS, so the two are not isomorphic, hence there is no 'translating' one into another. The research I have done so far suggested that the way to go would be to use some kind of CAD software, which I did - I wrote the following simple script using PythonOCC

Converting a STEP file into an STL

我怕爱的太早我们不能终老 提交于 2020-01-23 12:57:03
问题 I am looking for suggestions on how to tackle the following problem: To convert a STEP (ISO 10303, AP 203/214) into a triangular mesh, i.e. into STL Obviously, STEP supports various exact representations of some smooth curves, for instance NURBS, so the two are not isomorphic, hence there is no 'translating' one into another. The research I have done so far suggested that the way to go would be to use some kind of CAD software, which I did - I wrote the following simple script using PythonOCC

How to create a 3d Heatmap from a discrete data set in Python?

安稳与你 提交于 2020-01-23 03:47:06
问题 I have a large dataset of the form [(X1, Y1, Z1, VALUE1), (X2, Y2, Z2, VALUE2)...]. The geometry of the points is the surface of a cylinder, while there are many discrete points they come nowhere near being a full mesh. I would like to create a basic plot, where each of the points is given an intensity of a color (like a heatmap) based on how high its value is, and then the colors are smoothed to some degree to create a cohesive surface rather than discrete points I am currently using

Plotting a imshow() image in 3d in matplotlib

三世轮回 提交于 2020-01-22 06:43:25
问题 How to plot a imshow() image in 3d axes? I was trying with this post. In that post, the surface plot looks same as imshow() plot but actually they are not. To demonstrate, here I took different data: import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np # create a 21 x 21 vertex mesh xx, yy = np.meshgrid(np.linspace(0,1,21), np.linspace(0,1,21)) # create vertices for a rotated mesh (3D rotation matrix) X = xx Y = yy Z = 10*np.ones(X.shape) # create some

Plotting a imshow() image in 3d in matplotlib

百般思念 提交于 2020-01-22 06:43:04
问题 How to plot a imshow() image in 3d axes? I was trying with this post. In that post, the surface plot looks same as imshow() plot but actually they are not. To demonstrate, here I took different data: import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np # create a 21 x 21 vertex mesh xx, yy = np.meshgrid(np.linspace(0,1,21), np.linspace(0,1,21)) # create vertices for a rotated mesh (3D rotation matrix) X = xx Y = yy Z = 10*np.ones(X.shape) # create some

How to correctly generate a 3d histogram using numpy or matplotlib built in functions in python?

ぐ巨炮叔叔 提交于 2020-01-21 12:27:04
问题 This is more of a general question about 3d histogram creation in python. I have attempted to create a 3d histogram using the X and Y arrays in the following code import matplotlib import pylab import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d.axes3d import Axes3D from matplotlib import cm def threedhist(): X = [1, 3, 5, 8, 6, 7, 1, 2, 4, 5] Y = [3, 4, 3, 6, 5, 3, 1, 2, 3, 8] fig = pylab.figure() ax = Axes3D(fig) ax.hist([X, Y], bins=10, range=[[0, 10], [0, 10]])

How to correctly generate a 3d histogram using numpy or matplotlib built in functions in python?

…衆ロ難τιáo~ 提交于 2020-01-21 12:27:02
问题 This is more of a general question about 3d histogram creation in python. I have attempted to create a 3d histogram using the X and Y arrays in the following code import matplotlib import pylab import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d.axes3d import Axes3D from matplotlib import cm def threedhist(): X = [1, 3, 5, 8, 6, 7, 1, 2, 4, 5] Y = [3, 4, 3, 6, 5, 3, 1, 2, 3, 8] fig = pylab.figure() ax = Axes3D(fig) ax.hist([X, Y], bins=10, range=[[0, 10], [0, 10]])

7款超酷HTML5 3D动画精选应用及源码

谁都会走 提交于 2020-01-21 08:38:41
对以前来讲,3D动画拿到网页上展示是一件非常奢侈的事情,第一是浏览器不够先进,第二是大部分只能用flash实现伪3D。HTML5的出现,让实现网页3D动画变得非常简单,当然前提是你不要再使用像IE678之类的浏览器了。下面精选的几款HTML5 3D动画,希望你会喜欢。 1、HTML5 SVG 3D空间模型 可拖拽缩放 这是一个基于HTML5和SVG的3D空间模型,这个3D模型提供了x、y、z三个坐标轴以及一个平面网格。我们可以对这个HTML5 3D模型进行缩放、拖拽、翻转等操作,这些操作可以通过鼠标,也可以通过快捷键,非常方便。 在线演示 源码下载 2、HTML5 3D立体图片相册 HTML5非常强大,尤其是和CSS3结合,有时候能达到非同凡响的网页动画效果。今天要分享的这款HTML5应用就是一款很酷的3D立体图片相册应用,它可以用鼠标多拽从多个角度浏览相册图片,点击图片,就可以放大图片,相册图片都是美女,千万别让女朋友看到。 在线演示 源码下载 3、基于HTML5的SVG动画折线图表 线颜色渐变 今天给大家带来一款HTML5图表应用,图表是基于SVG结构的折线图。遗憾的是这款HTML5图表不可以自定义数据点,但是有一个特点是折线的颜色是渐变的,并且在图表数据初始化的时候,折线显示是带有动画特效的。 在线演示 源码下载 4、HTML5 TweenMax