使用THREE.LineBasicMaterial的线条粗细 [英] Thickness of lines using THREE.LineBasicMaterial

查看:1223
本文介绍了使用THREE.LineBasicMaterial的线条粗细的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用下面的代码在我的three.js场景中创建数百行

I am using the code below to create hundreds of lines in my three.js scene

edgeGeometry[i] = new THREE.Geometry();
edgeGeometry[i].vertices[0] = v(x1,y1,z1);
edgeGeometry[i].vertices[1] = v(x2,y2,z2);
edgesMat[i] = new THREE.LineBasicMaterial({
    color: 0x6699FF, linewidth: 1, fog:true});
edge[i] = new THREE.Line(edgeGeometry[i], edgesMat[i]);
edge[i].type = THREE.Lines;
scene2.add(edge[i]);

它工作正常,但是当我将linewidth的值更改为更大或更小的值时,我看到场景没有区别。

我应该如何改变线条的粗细?任何想法?

谢谢,Dimitris

It works just fine, but when i change the value of "linewidth" to a bigger OR smaller value, i see NO difference in the scene.
How should i change the thickness of the lines? Any ideas?
Thanks, Dimitris

推荐答案

您使用的是Windows吗?

我记得这不适用于Windows,因为它没有在 ANGLE 中实现。

Are you using Windows?
I remember this not working on Windows because it wasn't implemented in ANGLE.

这篇关于使用THREE.LineBasicMaterial的线条粗细的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆