I have some points which represent polylines. I want to convert this polylines into geometry for which I am creating a curve and an object containing this object.
curveData = bpy.data.curves.new('myCurve', type='CURVE') curveData.dimensions = '3D' curveData.bevel_resolution = 0 curveData.bevel_depth = 1 polyline = curveData.splines.new(type='POLY') polyline.points.add(len(yarn)-1) for point, node in zip(polyline.points, yarn): point.co = positions[node] point.radius = radii[node] # create Object obj = bpy.data.objects.new('yarn', curveData) obj.active_material = mat
This code normally works fine, but for some data sets that I have it takes ages to generate all the geometry I need (~ 15 minutes).
I want to know if there is any way to send the points in my data set to the GPU and use a geometry shader to create the geoemtry I want to render. I would like to render it using the Principled BSDF shader, so the geometry shader should produce data for this shader.