答案 0 :(得分:2)
LatheGeometry
和LatheBufferGeometry
现在将Vector2
数组作为输入。
var points = [];
for ( var i = 0; i < 10; i ++ ) {
points.push( new THREE.Vector2( Math.sin( i * 0.2 ) * 10 + 5, ( i - 5 ) * 2 ) );
}
var geometry = new THREE.LatheGeometry( points );
点在xy平面中定义,并围绕y轴旋转以创建形状。每个点的x坐标必须大于零。
three.js r.76