改为圆形
This commit is contained in:
@@ -197,8 +197,13 @@ def create_geometry(obj_data):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
if face_geom == "plane":
|
if face_geom == "plane":
|
||||||
bpy.ops.mesh.primitive_plane_add(size=1) # 减小平面尺寸
|
# 创建圆形平面而不是方形
|
||||||
|
bpy.ops.mesh.primitive_circle_add(vertices=32, radius=0.5)
|
||||||
mesh = bpy.context.active_object
|
mesh = bpy.context.active_object
|
||||||
|
# 填充圆形
|
||||||
|
bpy.ops.object.mode_set(mode='EDIT')
|
||||||
|
bpy.ops.mesh.edge_face_add()
|
||||||
|
bpy.ops.object.mode_set(mode='OBJECT')
|
||||||
elif face_geom == "circle":
|
elif face_geom == "circle":
|
||||||
# 创建圆形平面
|
# 创建圆形平面
|
||||||
bpy.ops.mesh.primitive_circle_add(vertices=32, radius=0.5)
|
bpy.ops.mesh.primitive_circle_add(vertices=32, radius=0.5)
|
||||||
|
|||||||
Reference in New Issue
Block a user