三个JS创建自定义3d几何

时间:2014-01-25 19:35:30

标签: three.js

有没有办法在3d中定义形状

var x = 0,y = 0, z = 0 ;

var heartShape = new THREE。 Shape ();

heartShape.moveTo(x + 25,y + 25, z );

heartShape.bezierCurveTo(x + 25,y + 25, z ,x + 20,y, z ,x,y, z );

heartShape.bezierCurveTo(x - 30,y, z ,x - 30,y + 35 ,, z < / strong>,x - 30,y + 35, z-30 ); ....

1 个答案:

答案 0 :(得分:0)

你可以通过这个例子来创建各种形状.... http://threejs.org/examples/#webgl_geometry_shapes