自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

omni360的专栏

商域无疆 - 本博客专注于敏捷开发及移动和物联设备研究:数据可视化、GOLANG、Html5、WEBGL、THREE.JS

  • 博客(17)
  • 资源 (13)
  • 收藏
  • 关注

原创 three.js 源码注释(九十六)Cameras/CubeCamera.js

CubeCamera方法根据 near, far ,cubeResolution 生成立方体相机.CubeCamera对象的功能函数采用 定义构造的函数原型对象来实现. CubeCamera经常用来创建天空盒子.由六张图片拼接成一个场景.<summary>CubeCamera</summary><param name ="near" type="Number">指明相对于深度剪切面的近的距离,必须为正数,可选参数,如果未指定,初始化为0.1</param><param name ="far" ty

2015-02-01 20:33:49 3717

原创 three.js 源码注释(九十五)extras/core/Gyroscope.js

Gyroscope对象陀螺仪,听名字很神奇,一个陀螺仪对象的抽象基类.应该适用于移动端的.应该是将这个对象作为某个Object3D对象的子对象, 根据3d陀螺仪的数据,更新绑定对象的坐标,方位之类的.<summary>Gyroscope</summary>

2015-02-01 20:25:35 2097

原创 three.js 源码注释(九十四)extras/core/Shape.js

STEP 1 Create a path.1. 创建路径STEP 2 Turn path into shape.2. 将路径变成截面STEP 3 ExtrudeGeometry takes in Shape/Shapes3. 将截面拉伸成几何体STEP 3a - Extract points from each shape, turn to vertices3a. 导出所有的截面顶点到vertices属性中STEP 3b - Triangulate each shape, add faces

2015-02-01 20:22:13 2512

原创 three.js 源码注释(九十三)extras/core/Path.js

Path类创建2d的路径,包括点,线,和立方体,类似于HTML5 2D画布的API,curvePath类的扩展.<summary>Curve</summary><param name ="points" type="Vector2Array">2维向量数组</param>

2015-02-01 20:20:45 2380

原创 three.js 源码注释(九十一)extras/core/Curve.js

/************************************************************** * Abstract Curve base class 曲线抽象基类 **************************************************************/Curve对象曲线抽象基类,一个可扩展的曲线对象包含插值方法. 定义:样条曲线是经过一系列给定点的光滑曲线。最初,样条曲线都是借助于物理样条得到的,放样员把富有弹性的细木条(或

2015-02-01 20:12:14 2499

原创 three.js 源码注释(九十)extras/SceneUtils.js

/************************************************************** * SceneUtils scene对象的工具集 **************************************************************/createMultiMaterialObject方法创建一种新的Objec3D对象,每个网格对象对应一种材质.这里和一个网格的每个面使用Meshfacematerial 材质不同.这种方式适用于网

2015-02-01 20:07:59 1934

原创 three.js 源码注释(八十九)extras/ImageUtils.js

/************************************************************** * ImageUtils image对象的工具集,更方便的加载图片的辅助类. **************************************************************/ /*loadTexture加载url指定的位置的图片资源,并创建纹理,返回纹理对象.*/<summary>loadTexture</summary><param n

2015-02-01 20:05:44 3234

原创 three.js 源码注释(八十八)extras/GeometryUtils.js

/************************************************************** * GeometryUtils geometry对象的工具集 **************************************************************/merge方法将两个几何体对象或者Object3D里面的几何体对象合并,(使用对象的变换)将几何体的顶点,面,UV分别合并.NOTE: merge方法在新版本中已经放到了Geomet对象下

2015-02-01 20:03:42 2991

原创 three.js 源码注释(八十七)extras/FontUtils.js

* typeface.js and canvastext * For converting fonts and rendering with javascript * 使用javascript渲染和转换字体通过typeface.js,访问下面网站. * http://typeface.neocracy.org * * Triangulation ported from AS3 * Simple Polygon Triangulation * 简单的多边形三角化 * http

2015-02-01 19:59:48 1980

原创 three.js 源码注释(八十六)extras/geometries/TubeGeometry.js

TubeGeometry用来在三维空间内创建一个弯管对象. 用法: var CustomSinCurve = THREE.Curve.create( function ( scale ) { //custom curve constructor this.scale = (scale === undefined) ? 1 : scale; }, function ( t ) { //getPoint: t is between

2015-02-01 17:32:30 2139

原创 three.js 源码注释(八十五)extras/geometries/PolyhedronGeometry.js

PolyhedronGeometry用来在三维空间内创建一个多面体对象,二十面体,八面体,四面体都会调用当前对象. 用法: var vertices = [ 1, 1, 1, - 1, - 1, 1, - 1, 1, - 1, 1, - 1, - 1 ]; var indices = [ 2, 1, 0, 0, 3, 2, 1, 3, 0, 2, 3, 1 ]; var geometry = new THREE.Polyh

2015-02-01 17:31:08 1843

原创 three.js 源码注释(八十四)extras/geometries/ParametricGeometry.js

ParametricGeometry用来在三维空间内通过参数func的定义,生成一个几何体.有了这个对象,各种你想要的集合体,发挥你的数学天赋吧. 用法: var func = function(u,v){ var point = new THREE.Vector3(); point.x = 100 + Math.cos(u); point.y = 100 + Math.sin(v); return point; }; var geometry

2015-02-01 10:12:19 2232

原创 three.js 源码注释(八十三)extras/geometries/TorusKnotGeometry.js

TorusKnotGeometryy用来在三维空间内创建一个圆环结或者环形结对象.是由圆环体通过打结构成的扩展三维几何体,常用于制作管状,缠绕.带囊肿类的造型. 关于环形结的几何特征,参考:http://en.wikipedia.org/wiki/Torus_knot 各种漂亮的demo:http://katlas.math.toronto.edu/wiki/36_Torus_Knots 用法: var geometry = new THREE.TorusKnotGeometry(5,32,32);

2015-02-01 10:09:40 1652 1

原创 three.js 源码注释(八十二)extras/geometries/RingGeometry.js

RingGeometry用来在三维空间内创建一个二维圆环面对象. 用法: var geometry = new THREE.RingGeometry(1,5,32); var material = new THREE.MeshBasicMaterial({color: 0x00ff00}); var Ring = new THREE.Mesh(geometry,material); scene.add(Ring);<summary>TorusGeometry</summar

2015-02-01 10:06:36 1880

原创 three.js 源码注释(八十一)extras/geometries/TetrahedronGeometry.js

TetrahedronGeometry用来在三维空间内创建一个四面体对象. 用法: var geometry = new THREE.TetrahedronGeometry(70); var material = new THREE.MeshBasicMaterial({color: 0x00ff00}); var icos = new THREE.Mesh(geometry,material); scene.add(icos);<summary>TetrahedronGe

2015-02-01 10:03:13 1512

原创 three.js 源码注释(八十)extras/geometries/OctahedronGeometry.js

OctahedronGeometry用来在三维空间内创建一个八面体对象. 用法: var geometry = new THREE.OctahedronGeometry(70); var material = new THREE.MeshBasicMaterial({color: 0x00ff00}); var icos = new THREE.Mesh(geometry,material); scene.add(icos);<summary>OctahedronGeome

2015-02-01 10:00:24 1301

原创 three.js 源码注释(七十九)extras/geometries/TorusGeometry.js

TorusGeometry用来在三维空间内创建一个圆环体对象. 用法: var geometry = new THREE.TorusGeometry(3,1,12,18); var material = new THREE.MeshBasicMaterial({color: 0x00ff00}); var torus = new THREE.Mesh(geometry,material); scene.add(torus);<summary>TorusGeometry</s

2015-02-01 09:57:36 1496

pds db_linkage

Analyzing the MGE Database Linkage on Microstation Graphic Elements pds数据与图形文件就是通过db linkage连接到一起的 文件中详细讲解了 如何连接 以及dgn数据从大端 vax 数据转换为小端 pc 数据

2014-09-21

RenderMonkey.2008-12-17-v1.82.322.part2.rar

就像visual studio作为c++的IDE那样,能够自动编译并且看到运行效果.因为上传权限限制.一共有两个文件.

2014-09-21

RenderMonkey.2008-12-17-v1.82.322.part1.rar

就像visual studio作为c++的IDE那样,能够自动编译并且看到运行效果.因为上传权限限制.一共有两个文件.

2014-09-21

Intergraph Standard File Formats (Element Structure)

DGNLib is a small C/C++ library for reading and writing DGN files. Where can I get the source code? dgnlib-1.11.zip: Current standalone source with dgndump example mainline. Does DGNLib support all DGN elements? No, but it does support most 2D and 3D elements. Some of the more esoteric elements are read in "raw data mode", but not interpreted. It does support lines, line strings, curves, bsplines, ellipses, arcs, and text elements, as well as extracting color tables, and master coordinate information. Does DGNLib support Microstation V8 DGN Files? No, they are a substantially different format, and are not recognised at all. The DGNdirect library from the OpenDWG Alliance does support DGN v8. Is it portable? Yes, fairly, though as distributed it may be necessary to tweak the cpl_port.h and cpl_config.h files for different platforms. It was developed on Linux for a client deploying on MacOS, and Windows. Does it require alot of memory? Generally speaking no. Only one element at a time is kept in memory. If the file is "indexed" an additional 12 bytes per element is kept in memory after a pre-scan, but this isn't required. Does DGNLib include code to draw DGN elements? No, but there is a document that tries to indicate how to properly draw DGN elements given the structures returned by DGNLib. The OGR layer re-interprets the drawing information into OGR Feature Style format which is understood by some applications such as UMN MapServer. What is the license? DGNLib is under my usual MIT/X style open source license. Thus is can be easily used in commercial, and free products with no concern about licensing issues. See the header of any source file for the full license text. Is there support for writing DGN files? Yes, there is preliminary support for writing 2D and 3D DGN files in recent releases. Is there documentation? There is a detailed DGN Library API Reference available. There is currently no tutorial style information on how to use the library, but the dgndump.c utility can serve as a limited example. Is further work going on to improve the library? The initial project is complete, but I am interested in fixing bugs and adding minor features. Improvements are welcome.

2014-08-31

我的最牛代码

这是一个dgn 文件格式的开源库,我在里面添加了PDS设备模型和管口等element 的定义。 dgn lib Microstation PDS Equipment Nozzle file type

2014-08-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除