ShapeGeometry用来通过截面(参数shape)和参数选项(options)生成形状几何体.
ShapeGeometry
形状几何体截面
拉伸几何体参数选项
* Creates a one-sided polygonal geometry from a path shape....
分类:
Web程序 时间:
2015-01-31 13:06:09
阅读次数:
319
SphereGeometry用来在三维空间内创建一个球体对象.
用法: var geometry = new THREE.SphereGeometry(5,32,32);
var material = new THREE.MeshBasicMaterial({color: 0x00ff00});
var sphere = new THREE.Mesh(geometry,material);
scene.add(sphere);
SphereGeometry<...
分类:
Web程序 时间:
2015-01-31 13:00:40
阅读次数:
4021
LatheGeometry类通过截面顶点数组(points)创建旋转几何体.
用法:
var points = [];
for ( var i = 0; i < 10; i ++ ) {
points.push( new THREE.Vector3( Math.sin( i * 0.2 ) * 15 + 50, 0, ( i - 5 ) * 2 ) );
}
var geometry = new THREE.LatheGeometry( points );
var mater...
分类:
Web程序 时间:
2015-01-31 12:56:13
阅读次数:
166
IcosahedronGeometry用来在三维空间内创建一个二十面体对象.
用法: var geometry = new THREE.IcosahedronGeometry(70);
var material = new THREE.MeshBasicMaterial({color: 0x00ff00});
var icos = new THREE.Mesh(geometry,material);
scene.add(icos);
IcosahedronG...
分类:
Web程序 时间:
2015-01-31 12:51:22
阅读次数:
171
ExtrudeGeometry用来通过截面(参数shape)生成拉伸几何体.
ExtrudeGeometry
拉伸几何体截面
拉伸几何体参数选项
* parameters = {
*
* curveSegments: , // number of points on ...
分类:
Web程序 时间:
2015-01-30 22:46:35
阅读次数:
675
题目链接:3Sum Closest
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input...
分类:
其他好文 时间:
2015-01-30 22:42:30
阅读次数:
252
TextGeometry用来生成文字,不过要生成中文3d文字,需要将中文字体利用typeface.js将字体转换成js格式的形文件.
TextGeometry
文字内容
文字参数选项
For creating 3D text geometry in three.js
Text =...
分类:
Web程序 时间:
2015-01-30 09:04:51
阅读次数:
831
Do handle exceptions in threads.Unhandled exceptions in threads, even background threads, generally terminate the process.There are three exceptions t...
分类:
Web程序 时间:
2015-01-30 08:59:50
阅读次数:
142
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mat...
分类:
编程语言 时间:
2015-01-30 07:54:12
阅读次数:
296
Number letter counts
Problem 17
If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.
If all the numbers ...
分类:
编程语言 时间:
2015-01-29 14:44:35
阅读次数:
207