TerminateAddEdgeWithInteriorPoints

導入

v4.0

カテゴリ

モデリングの描画

詳細

ポリゴンの内側に複数のポイントがある場合に、ポイントまたはエッジから開始される新規エッジ シークエンスを完成させます。終端は指定のエッジに沿った指定の部分です。

スクリプト構文

TerminateAddEdgeWithInteriorPoints( Operator, PolygonID, EdgeID, [Ratio] );

パラメータ

パラメータ タイプ 詳細
オペレータ 文字列 最終エッジ シーケンスを作成するのに使用される [エッジ オペレータの追加]を指定します。
PolygonID Integer ポリゴンの ID
EdgeID Integer 新規エッジのシークエンスの終了する場所となるエッジの ID。
Ratio ダブル 目的のエッジを分割する比率。

デフォルト値: 0.0

指定可能な値:

説明:

0 新しいエッジは目的のエッジの開始ポイントで終了します。
0 目的のエッジが新しいエッジシーケンスの終了前に分割されます。
100 新しいエッジは目的のエッジの終了ポイントで終了します。

VBScript の例

'
' This example uses AddEdge and at some point adds a point in the interior 
' of a quad. The edge is terminated using TerminateAddEdgeWithInteriorPoints 
' to split the edge 3 at 27.8%
'
NewScene , false
CreatePrim "Grid", "MeshSurface"
SetValue "grid.polymsh.geom.subdivu", 1
SetValue "grid.polymsh.geom.subdivv", 1
SplitEdge "grid.edge[1]", 64.9271844660194, False, True, siPersistentOperation
ApplyTopoOp "AddEdge", "grid.pnt[LAST];grid.edge[1];grid.poly[0]"
AddPointInteriorToPolygon "grid.polymsh.addedgeop", 0, 0, 1, 2, 0.394370594438662, 0.102825667243581, 0.502803738317757
TerminateAddEdgeWithInteriorPoints "grid.polymsh.addedgeop", 0, 3, 27.7912621359223

関連項目

ApplyOp ConnectNewPolygonToEdge ConnectNewPolygonToPoint AddPointToNewPolygon RemovePointFromPolygon AddPointInteriorToPolygon RemoveLastPointInteriorToPolygon SnapOffsetToPointForSlicePolygons