我正在尝试使用虚线缩放对象,但希望短划线距离保持不变。
Orange Box should have proper dash distances
var geometryCube = cube(3);
geometryCube.computeLineDistances();
var object = new THREE.LineSegments(geometryCube, new THREE.LineDashedMaterial({ color: 0xffaa00, dashSize: 3, gapSize: 1, linewidth: 2 }));
object.scale.multiplyScalar(10);
geometryCube.computeLineDistances();
self.bbox.geometry.lineDistancesNeedUpdate = true;
self.scene.add(object);
geometryCube.computeLineDistances();
无论是帮助还是self.bbox.geometry.lineDistancesNeedUpdate = true;
。
答案 0 :(得分:0)
确实破坏了:.3不起作用?或破折号:30个大小:20个等?