CylinderMixin

概要

design 円筒系、寸法、 points を定義するために他の designs で mixin として使用されます。 ただし、独自のジオメトリはありません。

Mixin

BaseModifier

標準

Name [タイプ] 説明
height number bottomPoint から topPoint までの Z 軸に沿った円柱の高さです
radius number bottomPoint で計測した XY 平面の円柱の半径です

[パラメータ]

Name [タイプ] 説明
bottomPoint point 円柱の底面の中心にある Point をクリックします。
topPoint point 円柱の上面の中心にある Point をクリックします。
diameter number bottomPoint で計測した XY 平面の円柱の直径です。
axis vector bottomPoint から topPoint までの Vector をクリックします。 2 つの定義、または points topPoint bottomPoint)のいずれか 1 つだけを指定する場合に使用します。
closed? boolean true [ 円柱の端が閉じていることを指定します。
startAngle number 部分的な円柱の開始角度を指定します。
endAngle number 部分的な円柱の終了角度を指定します。

グループ ルール

<diameter_only (diameter)> 直径を指定することで、必要な半径を満たしています。

<_bottomPoint (bottomPoint)> bottomPoint を指定することで底面の中心に対して円柱が配置されます。高さと半径も必要です。

<_topPoint (topPoint)> topPoint を指定することで上面の中心に対して円柱が配置されます。高さと半径も必要です。

<bottomPoint_axis (bottomPoint axis)> bottomPoint を指定することと軸は円柱の底面の中心点を基準にして配置され、円柱の軸がそれに応じて変更されます。 高さと半径も必要です。

<topPoint_axis (topPoint axis)> topPoint と軸は上面の中心に円柱を基準として配置され、円柱の軸がそれに応じて変更されます。 高さと半径も必要です。

<topPoint_bottomPoint (topPoint bottomPoint)> topPoint と bottomPoint を指定することで上面と底面の中心の両方に対して円柱が配置されます。これらの 2 つの points では、円柱の高さと軸が決定されますが、半径は必要です。

例 1

Name : cylinderMixin_Ex01
Design : Mixins cylinderMixin AcDrawingDocument
[名前] [タイプ]
height number 30
radius number 5
Child Name : top
Child Design : :Cylinder
[名前] [タイプ] 指定値
height number 0.5
radius number Me.radius
topPoint point Me.topPoint
color string "red"
Child Name : bottom
Child Design : :Cylinder
[名前] [タイプ] 指定値
height number 0.5
radius number Me.radius
bottomPoint point Me.bottomPoint
color string "red"
Child Name : stiffener1
Child Design : :Block
[名前] [タイプ] 指定値
height number Me.height - bottom.height - top.height
length number 1.5 * Me.radius
width any 1
fBottom point bottom.topPoint
color string "red"
Child Name : stiffener2
Child Design : :Block
[名前] [タイプ] 指定値
height number Me.height - bottom.height - top.height
length number 1
width any 1.5 * Me.radius
fBottom point bottom.topPoint
color string "red"

例 2

Name : cylinderMixin_Ex02
Design : Mixins AcDrawingDocument
Child Name : side
Child Design : :block
[名前] [タイプ] 指定値
height number 400
length number 200
width number 50
color string "blue"
Child Name : top
Child Design : :block
[名前] [タイプ] 指定値
height number 75
length number 200
width number 200
color string "jungle green"
eTopRight point side.eTopLeft
Child Name : unit
Child Design : :block
[名前] [タイプ] 指定値
height number 75
length number 150
width number 150
color string "dandelion"
v011 point top.v010
Child Name : shortColumn
Child Design : :CylinderMixin_Ex01
[名前] [タイプ] 指定値
radius number 20
height number 250
topPoint point Unit.v010 + vector(20,-20,0)
bottomPoint point child.topPoint + Vector(0, 0, 0 - child.height)
Child Name : tallColumn
Child Design : :CylinderMixin_Ex01
[名前] [タイプ] 指定値
radius number 20
height number 325
topPoint point Me.unit.v000 + vector(20,20,0)
bottomPoint point child.topPoint + Vector(0, 0, 0 - child.height)