Optima Interior (2027)

# Create a new mesh datablock and object mesh = bpy.data.meshes.new("OptimaInterior") obj = bpy.data.objects.new("OptimaInterior", mesh) bpy.context.collection.objects.link(obj) bpy.context.view_layer.objects.active = obj obj.select_set(True)

# Write bmesh to mesh bm.to_mesh(mesh) bm.free()

# Generate vertices for top and bottom rings verts_top = [] verts_bottom = [] for i in range(segments): angle = 2 * math.pi * i / segments x = radius * math.cos(angle) y = radius * math.sin(angle) # Top ring with gentle undulation (z varies with angle) z_top = height * (0.5 + 0.3 * math.sin(4 * angle)) # 4 lobes v_top = bm.verts.new((x, y, z_top)) verts_top.append(v_top) # Bottom ring (flat) v_bottom = bm.verts.new((x, y, -height/2)) verts_bottom.append(v_bottom) optima interior

# Create central disc on bottom (optional, but helps solidity) # Actually we will fill bottom with a fan bm.faces.new(verts_bottom) # Fan fill works if verts are in order

# Optional: Add thickness? Actually this is a thin shell, but the prompt "solid piece" suggests a volumetric form. # Let's add thickness by extruding the entire shape downward, but that duplicates geometry. Instead, we create a true solid by adding a bottom layer. # Better: create a thicker base by extruding bottom ring down. # Create a new mesh datablock and object mesh = bpy

print("Generated 'Optima Interior' solid piece mesh.") This model forms a single closed mesh with a gently lobed upper surface, a flat base, and smooth subdivision-ready geometry. It is designed as a unified object suitable for rendering, 3D printing, or further sculpting of an organic interior volume.

# Create faces between top and bottom rings for i in range(segments): i_next = (i + 1) % segments # Quad between top and bottom bm.faces.new((verts_top[i], verts_top[i_next], verts_bottom[i_next], verts_bottom[i])) Instead, we create a true solid by adding a bottom layer

# Recalculate normals outward bmesh.ops.recalc_face_normals(bm, faces=bm.faces)