UV 値に対応する Sample のインデックスの配列を戻します。
Object NurbsSampleCollection.GetIndexArrayFromUVSamplingCoordinateArray( Object, Object ); |
oArray = NurbsSampleCollection.GetIndexArrayFromUVSamplingCoordinateArray( UVArray ); |
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 |