You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I have been playing with sketching curves on a 3D surface using the following snippet
import pythreejs as p3j
"""
Much code snipped out
"""
vertices1= curve_points.tolist()
curve_color = ['yellow']*len(curve_points.tolist)
curve_geom = p3j.Geometry(vertices= vertices1, colors= curve_color)
curve = p3j.Line(geometry= curve_geom, material=p3j.LineBasicMaterial(linewidth=5, vertexColors='VertexColors'))
Turns out regardless of the linewidth value I set for the p3j.LineBasicMaterial, it always seems to come up with a width of 1. There is documentation in the three.js website for LineBasicMaterial that there is a known OpenGL Windows bug that works like this, but I am doing this on a macOS machine. Is the line width trait being ignored?
The text was updated successfully, but these errors were encountered:
JuanCab
changed the title
line width has no effect on
linewidth has no effect on LineBasicMaterial
Jun 26, 2018
I'm in the process of updating to r97 of three, and decided to include the example code for thick lines that was released with r96 (I think). It should be usable from the next release.
So, I have been playing with sketching curves on a 3D surface using the following snippet
Turns out regardless of the
linewidth
value I set for thep3j.LineBasicMaterial
, it always seems to come up with a width of 1. There is documentation in the three.js website forLineBasicMaterial
that there is a known OpenGL Windows bug that works like this, but I am doing this on a macOS machine. Is theline width
trait being ignored?The text was updated successfully, but these errors were encountered: