スキップしてメイン コンテンツに移動

トーラス 3つ in 3次元空間


色は付いていません

ChatGPT で Python スクリプト 設定注文 

多数 すると
エラーとなるので








簡素な 土台の生成スクリプトだけに
なっています

blender 2023 初歩の初歩 005 ChatGPT で python 書いてもらい 16個の球体を正方形に並べて 描けた

https://togetter.com/li/2088342


目次 2022の目次 単純トリック hatena zionadchat https://togetter.com/t/b2022meetzionad 





以下のように、各トーラスのz座標を5ずつ離して描画することで、トーラスを5の間隔で重ねて描画することができます。



これにより、3つのトーラスがそれぞれz座標0、5、10で描画され、5の間隔で重なっていることがわかります。




import bpy

# Define torus parameters
major_radius = 1.5
minor_radius = 0.5
thickness = 0.5

# Create the first torus
bpy.ops.mesh.primitive_torus_add(
    location=(0, 0, 0),
    major_radius=major_radius,
    minor_radius=minor_radius,
    abso_major_rad=1.0,
    abso_minor_rad=0.5,
    minor_segments=16,
    major_segments=48
)

# Create the second torus
bpy.ops.mesh.primitive_torus_add(
    location=(0, 0, 5),
    major_radius=major_radius,
    minor_radius=minor_radius,
    abso_major_rad=1.0,
    abso_minor_rad=0.5,
    minor_segments=16,
    major_segments=48
)

# Create the third torus
bpy.ops.mesh.primitive_torus_add(
    location=(0, 0, 10),
    major_radius=major_radius,
    minor_radius=minor_radius,
    abso_major_rad=1.0,
    abso_minor_rad=0.5,
    minor_segments=16,
    major_segments=48
)















<blockquote class="twitter-tweet"><p lang="zxx" dir="ltr"><a href="https://t.co/gKW1kGlgLF">pic.twitter.com/gKW1kGlgLF</a></p>&mdash; zionadchat (@zionadchat) <a href="https://twitter.com/zionadchat/status/1632540242107592705?ref_src=twsrc%5Etfw">March 6, 2023</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>


https://twitter.com/zionadchat/status/1632540242107592705




20230306 mon 代官山 渋谷 六本木 東京


このブログの人気の投稿

机設定 Brave 用 2023

  机設定   Brave 用 2023  20230116 まで更新 更新は こっちへ https://hayaashi2021.blogspot.com/2023/01/brave-2023-20230116.html https://www.speedtest.net/ja jazzionad blog 空間認識の練習 2023 zionadchat CHATGPT 英語の練習 思考ワークエリア確保 開店休業状態のblog 波の音 https://www.youtube.com/watch?v=X6FlmuEPDKk 天気 東京 https://www.wunderground.com/weather/jp/tokyo/I13KITAY4?utm_source=HomeCard&utm_content=Button&cm_ven=HomeCardButton https://chat.openai.com/chat https://englishjazzionad.blogspot.com/2023/01/brave-2023.html 【初心者向け】blenderのテクスチャペイントでサイコロを作ろう【最短で理解】 How to Tile a Texture Without Repetition - Blender Tutoria https://www.youtube.com/watch?v=-VgtSL5ZpYc Sunset and Ocean Waves on a Tropical Beach https://www.youtube.com/watch?v=LbeYOvXSP-8 真・防衛研究チャンネル https://www.youtube.com/watch?v=rHwGueB6KFM 【初心者向け】世界一やさしいBlender入門!使い方&導入〜画像作成までを徹底解説【3.3対応】 3D Bibi https://www.youtube.com/watch?v=S6aAvxUx2ko ChatGPT https://chat.openai.com/chat https://www.learngpt.com/ Google 翻訳 DeepL翻訳:高精度な翻訳ツール Weblio 翻訳 翻訳の英訳 - 英辞郎 - アル https:

Chat 20130118 Homage

オマージュ 英語で homage ad jazzion パクリとの違い "Pastiche" and "homage" are both terms related to artistic imitation, but they have slightly different connotations. A pastiche is an artwork that imitates the style of another artist or period, often in a playful or satirical way. It is often seen as a form of flattery, but it can also be seen as a form of critique. While Homage is a show of respect or admiration for someone or something, often by imitating their style. It is often more serious and sincere than pastiche, and it is intended to pay tribute to the original work or artist. pastiche https://ejje.weblio.jp/content/pastiche 2023年1月18日水曜日 下書き Dürer & 測距儀2022c049 三角関係の狙撃 b Solar Ray https://2023zionadchat.blogspot.com/2023/01/durer-2022c049-b-solar-ray.html 文章作成の頼れるアシスタント、AI搭載のDeepL Writeが新登場 2023年1月17日 DeepL Writeはベータ版で、無料でどなたでもご利用いただけます。 https://www.deepl.com/ja/blog/introducing-deepl-write 昨日の 米国 死亡者総数 I'm sorry, but I do not have access to current informatio

失敗 PERPLEXITY 球体 12個 均等に 平面に並べて

blender で python 使って 球体 12個 均等に 平面に並べて blender 3.4.1 PERPLEXITY To create 12 spheres evenly spaced on a plane in Blender 3.4.1 using Python, you can use the following code: import bpy import mathutils # Create an empty object to hold the spheres empty = bpy.data.objects.new("Sphere Empty", None) bpy.context.scene.collection.objects.link(empty) # Define the radius of each sphere and the number of spheres radius = 1.0 num_spheres = 12 # Calculate the angle between each sphere angle_between_spheres = (2 * math.pi) / num_spheres # Create each sphere and position it around the empty object for i in range(num_spheres):     x = radius * math.cos(i * angle_between_spheres)     y = radius * math.sin(i * angle_between_spheres)     z = 0          # Create a new sphere and link it to the scene     bpy.ops.mesh.primitive_uv_sphere_add(location=(x, y, z))     sphere = bpy.context.object     bpy.context.scene.collection.objects.link(sphere)          # Parent the sphere to the empty object