Introductions Hello, I'm a blender newbie... For my tiny project due on October 10,2021 I'm now learning how to construct 3d things using solely Python scripts. But there was a problem... Please assist me with my query...
My Question I'd like to turn my octagon into a circle using solely "Python scripts"... (Does subdivision apply here, and if so, how?)
Here is my code
import bpy
verts = [(0,1,0), (0.29,1.70,0), (1,2,0), (1.70,1.70,0), (2,1,0), (1.70,0.29,0), (1,0,0), (0.29,0.29,0)]
faces = [(0,1,2,3,4,5,6,7)]
mesh = bpy.data.meshes.new("octagon")
object = bpy.data.objects.new("octagon", mesh)
bpy.context.collection.objects.link(object)
mesh.from_pydata(verts,[],faces)