国产久_亚欧精品一区_久久亚洲美女_99精品在线观看_日韩成人三级_久久精品久久久久

GeometryInstance

幾何體實例化允許一個Geometry對象在多個不同的位置,并且顏色獨特。例如,一個BoxGeometry可以多次實例化,每個BoxGeometry具有不同的modelMatrix來更改其位置、旋轉和比例。
new GeometryInstance(options)
Parameters:
options (Object)
Name Description
options.geometry
Geometry
要實例的幾何體。
options.modelMatrix
Matrix4
default Matrix4.IDENTITY
將幾何體從模型轉換為世界坐標的模型矩陣。
options.id
Object
使用Scene#pick或使用Primitive#getGeometryInstanceAttributes獲取/設置每個實例屬性時要返回的用戶定義對象。
options.attributes
Object
每個實例的屬性,如下面示例中顯示的show或color屬性。
Example
// Create geometry for a box, and two instances that refer to it.
// One instance positions the box on the bottom and colored aqua.
// The other instance positions the box on the top and color white.
var geometry = bmgl.BoxGeometry.fromDimensions({
  vertexFormat : bmgl.VertexFormat.POSITION_AND_NORMAL,
  dimensions : new bmgl.Cartesian3(1000000.0, 1000000.0, 500000.0)
});
var instanceBottom = new bmgl.GeometryInstance({
  geometry : geometry,
  modelMatrix : bmgl.Matrix4.multiplyByTranslation(bmgl.Transforms.eastNorthUpToFixedFrame(
    bmgl.Cartesian3.fromDegrees(-75.59777, 40.03883)), new bmgl.Cartesian3(0.0, 0.0, 1000000.0), new bmgl.Matrix4()),
  attributes : {
    color : bmgl.ColorGeometryInstanceAttribute.fromColor(bmgl.Color.AQUA)
  },
  id : 'bottom'
});
var instanceTop = new bmgl.GeometryInstance({
  geometry : geometry,
  modelMatrix : bmgl.Matrix4.multiplyByTranslation(bmgl.Transforms.eastNorthUpToFixedFrame(
    bmgl.Cartesian3.fromDegrees(-75.59777, 40.03883)), new bmgl.Cartesian3(0.0, 0.0, 3000000.0), new bmgl.Matrix4()),
  attributes : {
    color : bmgl.ColorGeometryInstanceAttribute.fromColor(bmgl.Color.AQUA)
  },
  id : 'top'
});
See:

Members

attributes : Object

每個實例的屬性,如ColorGeometryInstanceAttributeShowGeometryInstanceAttributeGeometry每個頂點的屬性不同;這些屬性對于整個實例都是常量。
Default Value: undefined

geometry : Geometry

正在實例化的幾何體。
Default Value: undefined

id : Object

選擇實例或使用實例獲取/設置每個實例屬性時返回的用戶定義對象。
Default Value: undefined
See:

modelMatrix : Matrix4

將幾何體從模型坐標轉換為世界坐標的4x4轉換矩陣。當這是單位矩陣時,幾何圖形以世界坐標繪制,即地球的wgs84坐標。本地參考幀可以通過提供不同的轉換矩陣來使用,如Transforms.eastNorthUpToFixedFrame返回的轉換矩陣。
Default Value: Matrix4.IDENTITY
主站蜘蛛池模板: 欧美激情小视频 | 香蕉视频影院 | 91网站在线看| 久久中文字幕一区二区三区 | 中文字幕在线日韩 | 在线免费观看91 | 一区二区三区入口 | 亚洲手机在线观看 | 国产真实乱 | 综合网色 | 激情五月色婷婷 | 激情三区 | 欧美成人另类 | 免费一级淫片aaa片毛片a级 | 日韩免费一区二区 | 亚洲欧美日本国产 | 国产a国产片 | 在线观看日韩视频 | 婷婷综合在线视频 | 夜夜操操 | 日韩电影在线一区 | 成人在线国产 | 免费福利在线视频 | 黄色av电影在线 | 亚州无限乱码一二三四 | 国产精品国产三级国产在线观看 | 欧美精品在线一区二区三区 | 在线看一级毛片免费视频播放 | 国产在线综合视频 | 黄色毛片网 | 国产丝袜91久久久久久久久久久 | 国产一级特黄aaa大片评分 | 亚洲国产精品网站 | 国产一区二区视频免费 | 国产成人综合电影 | 97自拍偷拍 | 视频一区二区中文字幕 | 在线观看一区 | 精品久久久久久久久久 | 无遮挡aaaaa大片免费看 | 69久久夜色精品国产69蝌蚪网 |