Assumed Plane の 球体群
blender python
Y=0 の平面に
球体を作る
球体半径 0.1
x=-5から+5
Z=-5から+5の
交点に 作る
# Y=0 平面の 同時性
import bpy
# Parameters for the spheres
radius = 0.1
x_min = -5
x_max = 5
z_min = -5
z_max = 5
# Create spheres at the intersection points
for x in range(x_min, x_max + 1):
for z in range(z_min, z_max + 1):
bpy.ops.mesh.primitive_uv_sphere_add(radius=radius, location=(x, 0, z))
# Y=1 平面の 同時性
import bpy
# Parameters for the spheres
radius = 0.1
x_min = -5
x_max = 5
z_min = -5
z_max = 5
# Create spheres at the intersection points
for x in range(x_min, x_max + 1):
for z in range(z_min, z_max + 1):
bpy.ops.mesh.primitive_uv_sphere_add(radius=radius, location=(x, 1, z))
# Y=5 平面の 同時性
import bpy
# Parameters for the spheres
radius = 0.1
x_min = -5
x_max = 5
z_min = -5
z_max = 5
# Create spheres at the intersection points
for x in range(x_min, x_max + 1):
for z in range(z_min, z_max + 1):
bpy.ops.mesh.primitive_uv_sphere_add(radius=radius, location=(x, 5, z))
# Y=root 3 平面の 同時性
import bpy
# Parameters for the spheres
radius = 0.1
x_min = -5
x_max = 5
z_min = -5
z_max = 5
# Create spheres at the intersection points
for x in range(x_min, x_max + 1):
for z in range(z_min, z_max + 1):
bpy.ops.mesh.primitive_uv_sphere_add(radius=radius, location=(x, 3 ** 0.5, z))
# Y=2 平面の 同時性
import bpy
# Parameters for the spheres
radius = 0.1
x_min = -5
x_max = 5
z_min = -5
z_max = 5
# Create spheres at the intersection points
for x in range(x_min, x_max + 1):
for z in range(z_min, z_max + 1):
bpy.ops.mesh.primitive_uv_sphere_add(radius=radius, location=(x, 2, z))
# Y=5 平面の 同時性
import bpy
# Parameters for the spheres
radius = 0.1
x_min = -5
x_max = 5
z_min = -5
z_max = 5
# Create spheres at the intersection points
for x in range(x_min, x_max + 1):
for z in range(z_min, z_max + 1):
bpy.ops.mesh.primitive_uv_sphere_add(radius=radius, location=(x, 10, z))
# Assumed Plane
import bpy
# List of collection names
collection_names = [
"Assumed Plane",
"ap Y=0 Assumed Plane",
"ap Y=1 Assumed Plane",
"ap Y=root3 Assumed Plane",
"ap Y=2 Assumed Plane",
"ap Y=5 Assumed Plane",
"ap Y=10 Assumed Plane"
]
# Function to create a new collection
def create_collection(name):
collection = bpy.data.collections.new(name)
bpy.context.scene.collection.children.link(collection)
return collection
# Create collections
for name in collection_names:
create_collection(name)
# Assumed Plane
import bpy
# List of collection names
collection_names = [
"Assumed Plane",
"ap Y=0 Assumed Plane",
"ap Y=1 Assumed Plane",
"ap Y=root3 Assumed Plane",
"ap Y=2 Assumed Plane",
"ap Y=5 Assumed Plane",
"ap Y=10 Assumed Plane"
]
# Function to create a new collection
def create_collection(name):
collection = bpy.data.collections.new(name)
bpy.context.scene.collection.children.link(collection)
return collection
# Create collections
for name in collection_names:
create_collection(name)
あ