
wheel assembly 3d model
import bpy scene = bpy.context.scene scene.unit_settings.system = 'METRIC' scene.unit_settings.scale_length = 1.0 scene.unit_settings.length_unit = 'MILLIMETERS' # 座標規則: X = 幅、Y = 長さ、Z = 高さ。 # 前面は -Y です。寸法はメートル単位でここに入力します。 def add_guide(name, location, radius=0.04, depth=0.08): bpy.ops.mesh.primitive_cylinder_add( vertices=24, radius=radius, depth=depth, location=location ) obj = bpy.context.object obj.name = name obj.display_type = 'WIRE' obj.hide_render = True return obj # 地面平面 bpy.ops.mesh.primitive_plane_add(size=8, location=(0, 0, 0)) ground = bpy.context.object ground.name = "Guide_Ground" ground.hide_render = True # 公称ホイール中心: ホイールベースの中間点から ±1.235 m。 # 検証済みのタイヤ/ホイール参照から Z とホイール寸法を設定します。 add_guide("Guide_Front_Axle", (0, -1.235, 0.30)) add_guide("Guide_Rear_Axle", (0, 1.235, 0.30)) # モデルを整理するためのコレクション
Tripo H3.1