Open manuel-koch opened 3 years ago
At least the following example renders two parallel lines in red color:
line = pyrender.Primitive(
positions=[[200, 0, 75], [200, 0, 100], [150, 0, 100], [150, 0, 75]],
color_0=[255, 0, 0],
mode=pyrender.constants.GLTF.LINES)
line_mesh = pyrender.Mesh([line])
line_mesh_node = scene.add(line_mesh)
Is it possible to control the thickness of the line(s) ?
@manuel-koch I met the same problem, do you find any solutions?
I was wondering how one can draw a line like it is possible in
trimesh
usingPath3D
instance ? Unfortunatelypyrender
will not accept a Path3d instance when callingpyrender.Mesh.from_trimesh()
.I tried creating a
pyrender.Primitive
with modepyrender.constants.GLTF.LINE
orpyrender.constants.GLTF.LINE_STRIP
and adding it to mypyrender.Scene
instance. But unfortunately my naive approach doesn't seem to work, i.e. I don't see anything rendered nor any error.Is there any simple example code available that would show how to
pyrender.Primitive
Any help or hint appreciated !