Curve data ?

is there a way to transfer curve’s points to a mesh ?

in old 2.49 there was commands like

me1= Mesh.New()
me1.getFromObject(cu_ob)

any equivalent ?

thanks
happy bl

I don’t know of any equivalent, but it’s pretty simple to just create a list of curve point locations and apply it to vertex data. Are you trying to create a mesh based on the curve data or does the mesh already exist?

i’m looking at some old script done in 2.49
for doing some 3D spline
I mean not the one in blender but real math model done with mesh data or real spline in blender !

so was wondering if anything in Mathutil or geometry module may be!
did not see anything yet !

and there was some code to convert curve to a spline

but I can find another way to do it

script does all the spline segments equations and solve it as an N matrix
in blender this is done inside bl which we don’t really see

thanks
happy bl

I only know that this converts a curve into a mesh. And you can extract object data from it.

bpy.ops.object.convert(target='MESH')

If you don’t want the ‘smooth’ from the curve and only want to extract the control points, you could do this:


obj = curve
obj.data.resolution_u = 1

Before the command above.