我有一个非常基本的问题 -
我将一些顶点(代表星星)绘制为THREE.Geometry
var constellationGeo = new THREE.Geometry();
for (var i = 0; i < starCount; i ++) {
var x = xScale(unfiltered[i].x);
var y = yScale(unfiltered[i].y);
var z = zScale(unfiltered[i].z);
var star = new THREE.Vector3(x, y, z);
constellationGeo.vertices.push(star);
}
然后我画了一条线,将它们加入星座:
var line = new THREE.Line(constellationGeo, lineMaterial);
scene.add(line);
但是,我的线路没有通过积分。似乎我在这里遗漏了一些基本的东西?