NurbsSampleCollection.GetIndexArrayFromUVSamplingCoordinateArray operator

説明

UV値に対応するSampleのインデックスの配列を戻します。

スクリプト 構文

oArray = NurbsSampleCollection.GetIndexArrayFromUVSamplingCoordinateArray( UVArray );

戻り値

Array

パラメータ

パラメータ タイプ 詳細
UVArray LongArray UV値の配列(例:[U1,V1, U2, V2, U3, V3])

VBScript の例

set oCube = ActiveSceneRoot.AddGeometry("Cube","NurbsSurface")
set oSurface = oCube.ActivePrimitive.Geometry.Surfaces(0)
set oSamples = oSurface.NurbsSamples
aIndices = oSamples.GetIndexArrayFromUVSamplingCoordinateArray(Array(0,2,1,3))
str = "The indices of Sample at UV(0,2) and UV(1,3) are:"
for i = lbound(aIndices) to ubound(aIndices)
str = str & " " & aIndices(i)
next
logmessage str