[球]

概要

このデザインは、基本ソリッドの閉じた球形状を定義します。球はソリッドであるため、SolidMixin デザインからルールを継承します。これにはソリッド エンティティに関連付けられている一般的なマス プロパティが含まれます。球デザインでは、開始角度パラメータ、終了角度パラメータを持たない閉じたソリッドについて記述します。球に必要な唯一の入力は、球の半径です。

Mixin

SphereMixin

SolidMixin

InkStrokedMixin

[パラメータ]

[名前] [タイプ] 説明
radius 数値 球の半径です。
center 球の中心点です。

ルール

[名前] [タイプ] 説明
bottomPoint ローカル参照フレームの point(0,0,-radius)、または center + vector(0, 0, -radius)の位置にある点です。
topPoint ローカル参照フレームの point(0,0,radius)、または center + vector(0, 0, radius)の位置にある点です。

例 1

名前 : Sphere_Ex01
Design : acDrawingDocument
[名前] [タイプ]
radius 数値 10
thickness 数値 1
depth 数値 5
子の名前 : outerSphere
子のデザイン : :sphere
[名前] [タイプ] 指定値
radius 数値 Me.radius - Me.thickness
子の名前 : cuttingBlock
子のデザイン : :block
[名前] [タイプ] 指定値
fTop outerSphere.topPoint
width 数値 Me.radius * 2
length 数値 Child.width
height 数値 Child.width - Me.depth
子の名前 : result
子のデザイン : :booleanSolid
[名前] [タイプ] 指定値
operation name :difference
components list {outerSphere, innerSphere, cuttingBlock}
color 文字列 "red"