2023年7月25日火曜日

Assumed Plane の 球体群

 

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)


















配布ファイル 20231005 遠近法モード 表示画面の大きさ

  今日の書き出し設定 項目メモ帳 2023: 20231005   立方体と 光線 https://2023na2022.blogspot.com/2023/10/20231005.html https://mokuji000zionad.hatenablog.com/