2023年3月8日水曜日

テスト中の20230308  球体の大きさ調整 

aaa






import bpy
import math

# 球体の半径と等間隔に配置する球体の数
r = 3
n = 36

for i in range(n):
    # 角度を計算
    theta = 2*math.pi*i/n
    # 球座標を直交座標に変換
    x = r*math.cos(theta)
    y = r*math.sin(theta)
    z = 0
    # 球体を作成
    bpy.ops.mesh.primitive_uv_sphere_add(location=(x, y, z), radius=0.05)






元スクリプト

36個の球体 円周 ChatGPT 出力 Pythonコード




 以下 俺用 切り捨て











import bpy
import math
import random

# Define the parameters
num_spheres = 200
outer_radius = 1
inner_radius = 0.05

# Create the outer sphere and rename it
bpy.ops.mesh.primitive_uv_sphere_add(radius=outer_radius)
big_sphere = bpy.context.active_object
big_sphere.name = "Big_sphere"

# Create the inner spheres
for i in range(num_spheres):
    theta = random.uniform(0, 2*math.pi)
    phi = random.uniform(0, math.pi)
    x = outer_radius * math.sin(phi) * math.cos(theta)
    y = outer_radius * math.sin(phi) * math.sin(theta)
    z = outer_radius * math.cos(phi)
    bpy.ops.mesh.primitive_uv_sphere_add(radius=inner_radius, location=(x, y, z))




# さらに 大きい球を 再度 描画しないテスト

import bpy
import math
import random

# Define the parameters
num_spheres = 200
outer_radius = 3
inner_radius = 0.07



# Create the inner spheres
for i in range(num_spheres):
    theta = random.uniform(0, 2*math.pi)
    phi = random.uniform(0, math.pi)
    x = outer_radius * math.sin(phi) * math.cos(theta)
    y = outer_radius * math.sin(phi) * math.sin(theta)
    z = outer_radius * math.cos(phi)
    bpy.ops.mesh.primitive_uv_sphere_add(radius=inner_radius, location=(x, y, z))












# 2重の輪っか?

import bpy
import math

# 球体の半径と等間隔に配置する球体の数
r =3
n = 36

for i in range(n):
    # 角度を計算
    theta = 2*math.pi*i/n
    # 球座標を直交座標に変換
    x = r*math.cos(theta)
    y = r*math.sin(theta)
    z = 0
    # 球体を作成
    bpy.ops.mesh.primitive_uv_sphere_add(location=(x, y, z), radius=0.07)



bbb
togetter.com/t/c2022meetzionad
togetter.com/t/b2022meetzionad




twitter 新着検索 Dürer & 測距儀


aaa









bbb
twitter zionadchat
twitter に追い出されたら 連絡先は Gettr https://gettr.com/user/zionadchat
twitter サブアカウント https://twitter.com/2022zionad

old page いいい
new page いいい

目次 2022の目次 単純トリック hatena zionadchat
いいいいいいいい

test

aaa (4) 結論としての空間概念の革命 この3枚の絵図は、zionadchat理論の最高到達点の一つです。 空間は絶対でも相対でもなく、**「観測者がどの階層(どの過去光円錐の大きさ)で現象を切り取っているか」**で決まる階層的・垂直的な実在...