メインコンテンツ

antenna.Polygon

xy 平面上での多角形の作成

説明

antenna.Polygon オブジェクトを使用して、xy 平面上に原点を中心とする多角形のボード形状を作成します。antenna.Polygon を使用すると、pcbStack を使用して単層または多層のアンテナを作成できます。

作成

説明

poly = antenna.Polygon は、xy 平面上に原点を中心とする多角形の形状を作成します。

poly = antenna.Polygon(PropertyName=Value) は、名前と値の引数を 1 つ以上使用してプロパティを設定します。PropertyName はプロパティ名、Value は対応する値です。PropertyName1=Value1,...,PropertyNameN=ValueN のように、複数の名前と値の引数を任意の順番で指定できます。指定されなければ、プロパティは既定値を保持します。

たとえば、poly = antenna.Polygon(Name="polygon-1") は、polygon-1 という名前の多角形を作成します。

プロパティ

すべて展開する

多角形のボード形状の名前。string として指定します。

例: "Polygon1"

データ型: string

多角形の頂点の直交座標。メートル単位の N 行 3 列の行列として指定します。ここで、N は点の数です。

例: [-1 0 0; -0.5 0.2 0; 0 0 0]

データ型: double

オブジェクト関数

addPerform Boolean unite operation on two shapes
subtractPerform Boolean subtraction operation on two shapes
intersectGenerate and plot intersection of two shapes
plusJoin two shapes
minusCarve a shape from other shape
andPerform Boolean intersection operation on two shapes
areaCalculate area of 2-D shapes in square meters
showアンテナ、アレイ、AI ベースのアンテナ、プラットフォーム、または形状の表示
plotPlot boundary of 2-D shape
meshGenerate and view mesh for antennas, arrays, and custom shapes
rotateRotate shape about axis by angle
rotateXRotate shape about x-axis by angle
rotateYRotate shape about y-axis by angle
rotateZRotate shape about z-axis by angle
translate形状を新しい位置に移動する
scaleChange size of shape by fixed factor
mirrorXMirror shape along x-axis
mirrorYMirror shape along y-axis
removeHolesRemove holes from shape
removeSliversRemove sliver outliers from shape boundary

すべて折りたたむ

antenna.Polygon を使用して、頂点が [-1 0 0; -0.5 0.2 0; 0 0 0] にある多角形を作成し、表示します。

p = antenna.Polygon(Vertices=[-1 0 0; -0.5 0.2 0; 0 0 0])
p = 
  Polygon with properties:

        Name: 'mypolygon'
    Vertices: [3×3 double]

show(p)
axis equal

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains 2 objects of type patch. These objects represent PEC, mypolygon.

多角形をメッシュ化し、メッシュ化された形状を表示します。

mesh(p,0.2)

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains an object of type patch.

多角形を X-Y 平面上の新しい位置に移動します。

translate(p,[2,1,0])
axis equal

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains 2 objects of type patch. These objects represent PEC, mypolygon.

バージョン履歴

R2017a で導入