3d

Drawing a portion of a hemisphere airspace

≯℡__Kan透↙ 提交于 2020-01-16 04:22:09
问题 I am trying to use WorldWind's SphereAirspace to construct a particular 3D airspace. The 3D shape I am trying to construct is a hemisphere cut parallel to the ground at two places, suppose at height h1 and h2 from the ground. The base of hemisphere is parallel to the ground. Found I don't have enough reputation to post an image, you can see the image here: http://forum.worldwindcentral.com/showthread.php?45274-Drawing-a-portion-of-a-hemisphere-airspace Thought of two solutions: 1.) Get

Having problems adding 3d points to existing 3d scatterplot

≯℡__Kan透↙ 提交于 2020-01-16 02:50:32
问题 I'm currently attempting to generate a 3d scatterplot for my project. As you can see below I've subset the species column into three different subsets to seperate out the three species. I'm managing to generate the scatterplot fine with one of the three data sets but I'm having problems adding points to the existing scatterplot from the other two data sets. Is there something I'm doing wrong or something I'm missing? Thanks in advance Brooke Data: Species Mid_X Mid_Y Mid_Z Cod -226.483 290

一个强大的3D模型查看器:Open 3D Model Viewer

╄→尐↘猪︶ㄣ 提交于 2020-01-15 12:03:09
主页: https://www.open3mod.com/index.htm Github: https://github.com/acgessler/open3mod ,使用C#语言开发,基于 Open Asset Import Library 。 适用于3D设计人员,3D打印爱好者和游戏程序员的免费开放源代码生产力工具。 特性: 大量3D格式支持 强大的3D查看器和基本编辑器,可处理40多种文件格式,包括OBJ,3DS,BLEND,STL(更多信息),FBX,DXF,LWO,LWS,MD5,MD3,MD2,NDO,X,IFC和Collada。少数几个独立FBX查看器之一。 快速用户界面 “模型查看器”具有选项卡式UX,因此可以同时打开多个场景。 3D视图最多分为四个视口。每个视口可使用不同的摄影机模式(轨道,FPS或轴对齐)。新文件将在后台加载。 即将推出 :3D打印的网格修复 很快将有3D打印专用工具来解决可能影响3D打印质量的任何问题。 编辑和修复 常见的毛刺,例如不正确的法线向量,翻转的UV坐标(或纹理)或退化的几何形状,可以直接在open3mod中修复。 导出 将场景,场景的一部分和纹理导出为多种目标格式,包括OBJ,PLY,3DS,Collada和STL。 骨骼动画 播放复杂的骨骼动画。可以锁定各个帧,可以调整播放速度,并且可以随时检查场景变换。 层次检查器

python: AttributeError: 'ZAxis' object has no attribute '_set_scale'

浪尽此生 提交于 2020-01-15 08:12:25
问题 I recently updated to OS X Maverics and as one of the results it broke my python matplotlib 3D plotting. For example when I run this: import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111, projection='3d') I get: Traceback (most recent call last): File "/Users/nacho/Documents/Proyecto/codigo/RLS/run_rls.py", line 89, in <module> n_plot([bunch.ff_weighted_estimation_error for bunch in rls.rls_bunchs], 'Peso') File "/Users/nacho

python: AttributeError: 'ZAxis' object has no attribute '_set_scale'

不想你离开。 提交于 2020-01-15 08:10:21
问题 I recently updated to OS X Maverics and as one of the results it broke my python matplotlib 3D plotting. For example when I run this: import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D fig = plt.figure() ax = fig.add_subplot(111, projection='3d') I get: Traceback (most recent call last): File "/Users/nacho/Documents/Proyecto/codigo/RLS/run_rls.py", line 89, in <module> n_plot([bunch.ff_weighted_estimation_error for bunch in rls.rls_bunchs], 'Peso') File "/Users/nacho

THREE.js - moving a 3D ball with a rotation

我们两清 提交于 2020-01-15 06:33:29
问题 I'm new to THREE.js and with a very poor knowledge in physics - but I am trying to build a football game engine (viewed from top) and right now I'm struggling with the movement of the ball. when trying to move the ball from side to side, the rotation is always facing one direction and I dont understand how to make this rotate in the direction its moving at. Ive added a simple code showing this issue. your help is much appreciated. /* * * SET UP MOTION PARAMS * */ var degrees = 10; var power =

Wrap an image around a cylinder

扶醉桌前 提交于 2020-01-15 06:13:29
问题 Someone asked me recently if I could print a bracelet with a custom image engraved on its side. To me, the problem is simple: I have a 2d cartesian system (x,y) that expresses the points of the vectorized image the person sent me. I want to treat these as a 3d cylindrical system (theta, r, z') where r is constant. Finally, I want to convert this 3d cylindrical system to a 3d cartesian system (x',y',z') in the usual way. So: z' = y y' = r cos(x) x' = r sin(x) The problem is I don't know how to

Wrap an image around a cylinder

回眸只為那壹抹淺笑 提交于 2020-01-15 06:12:48
问题 Someone asked me recently if I could print a bracelet with a custom image engraved on its side. To me, the problem is simple: I have a 2d cartesian system (x,y) that expresses the points of the vectorized image the person sent me. I want to treat these as a 3d cylindrical system (theta, r, z') where r is constant. Finally, I want to convert this 3d cylindrical system to a 3d cartesian system (x',y',z') in the usual way. So: z' = y y' = r cos(x) x' = r sin(x) The problem is I don't know how to

Wrap an image around a cylinder

家住魔仙堡 提交于 2020-01-15 06:11:25
问题 Someone asked me recently if I could print a bracelet with a custom image engraved on its side. To me, the problem is simple: I have a 2d cartesian system (x,y) that expresses the points of the vectorized image the person sent me. I want to treat these as a 3d cylindrical system (theta, r, z') where r is constant. Finally, I want to convert this 3d cylindrical system to a 3d cartesian system (x',y',z') in the usual way. So: z' = y y' = r cos(x) x' = r sin(x) The problem is I don't know how to

How to clip only intersection (not union) of clipping planes?

强颜欢笑 提交于 2020-01-15 05:39:06
问题 In OpenGL/JOGL, when using more than one clipping plane, the union of all clipping planes appears to be applied. What I want is instead the intersection of all clipping planes to be applied. Is this possible? See the below simplified 2-D example. Edit: An example of clipping by vertex shader (see comments below). 回答1: Multi-pass: #include <GL/glut.h> void scene() { glColor3ub( 255, 0, 0 ); glBegin( GL_QUADS ); glVertex2i( -1, -1 ); glVertex2i( 1, -1 ); glVertex2i( 1, 1 ); glVertex2i( -1, 1 );