Sample.Navigate

導入

v3.0

詳細

関連付けられているジオメトリのSample間を移動できます。

C#構文

Sample Sample.Navigate( siNavigateComponentType in_siNavigate );

スクリプト構文

oReturn = Sample.Navigate( Navigation );

戻り値

Sample

パラメータ

パラメータ タイプ 説明
Navigation siNavigateComponentType 移動方向を選択します。

VBScript の例

set oObj = ActiveSceneRoot.addgeometry( "Cube", "MeshSurface" )

set oSample = oObj.ActivePrimitive.Geometry.Samples(7)

LogMessage "The first sample of this geometry is of index " & oSample.Navigate(siFirsComponent).Index

LogMessage "The last sample of this geometry is of index " & oSample.Navigate(siLastComponent).Index

LogMessage "The next sample is of index " & oSample.Navigate(siNextComponent).Index

LogMessage "The previous sample is of index " & oSample.Navigate(siPreviousComponent).Index

' Expected results:

'INFO : The first sample of this geometry is of index 8

'INFO : The last sample of this geometry is of index 23

'INFO : The next sample is of index 8

'INFO : The previous sample is of index 6

関連項目

SampleCollection.Navigate Geometry.Samples