円錐

概要

このデザインは基本的な 3 次元の円錐を定義します。円錐はソリッドであり、ソリッド エンティティに関連付けられている標準的なマス プロパティが含まれるデザイン SolidMixin からルールを継承します。円錐のインスタンスを作成するための最小要件は高さと半径です。

Mixin

SolidMixin

InkStrokedMixin

標準

Name [タイプ] 説明
height 数値 basePoint から the topPoint までの、Z 軸に沿った円錐の高さです。
半径 数値 basePoint で計測される XY 平面の円錐の半径です。

[パラメータ]

Name [タイプ] 説明
topRadius 数値 topRadius がゼロの場合、上部が尖った円錐が生成されます。ゼロより大きい値では円錐の上部が平坦化され、円錐の高さは平坦な上部までが測定されます。

ルール

Name [タイプ] 説明
basePoint 円錐の底面の中心です。
topPoint 円錐の上部のです。topRadius がゼロより大きい場合、topPoint は上面の中心になります。

例 1

名前: cone_Ex01
Design: acDrawingDocument
子の名前: cone_1
子のデザイン: :Cone
[名前] [タイプ] 指定値
height 数値 3.5
半径 数値 2
color 文字列 "jungle green"

例 2

名前: cone_Ex02
Design: acDrawingDocument
子の名前: cone_1
子のデザイン: :Cone
[名前] [タイプ] 指定値
2 数値 2
半径 数値 2
topRadius 数値 1
referenceFrame フレーム frameXY(origin, unitZ, unitY)
color 文字列 "plum"

例 3

名前: cone_Ex03
Design: acDrawingDocument
[名前] [タイプ]
startOd 数値 3
endOd 数値 2
thk 数値 0.25
長さ 数値 1
%angle 数値 atan((startOd - endOd) / 2 / length)
%thk 数値 thk / cos(%angle)
子の名前: reducer
子のデザイン: :BooleanSolid
[名前] [タイプ] 指定値
operation name :difference
components list {od, id}
color 文字列 "blue"
子の名前: od
子のデザイン: :Cone
[名前] [タイプ] 指定値
height 数値 長さ
半径 数値 startOd / 2
topRadius 数値 endOd / 2
referenceFrame フレーム frameXY(origin, -unitZ, unitY)
子の名前: od
子のデザイン: :Cone
[名前] [タイプ] 指定値
height 数値 長さ
半径 数値 od.radius - %thk
topRadius 数値 od.topRadius - %thk
referenceFrame フレーム od.referenceFrame