このジオメトリの各Sampleオブジェクトを含むSampleCollectionを戻します。
注:このプロパティは IDispatch オブジェクトではなく SampleCollection を戻します。つまり、Geometry メソッドとプロパティへのアクセスが可能になるのではなく、Sample オブジェクトで使用できるメソッドとプロパティにのみアクセスできます。
// get accessor SampleCollection rtn = Geometry.Samples; |
set oCube = ActiveSceneRoot.AddGeometry("Cube","MeshSurface")
set oSamples = oCube.ActivePrimitive.Geometry.Samples
Application.LogMessage "There's " & oSamples.Count &" sample in this geometry" |