亚洲动漫在线观看-亚洲动漫第一页-亚洲丁香婷婷-亚洲丶国产丶欧美一区二区三区-亚洲第一综合网站-亚洲第一永久色

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
主站蜘蛛池模板: 黄在线观看www免费看 | 亚洲bt区 | 国产51社区精品视频资源 | 白丝超短裙被输出娇喘不停小说 | 91传媒在线观看 | a一级毛片录像带 录像片 | 亚洲香蕉综合在人在线视看 | 欧美聚众性派对hdsex | 国产成人精品视频午夜 | 网站色小妹 | 无码人妻视频又大又粗欧美 | 久久亚洲精品专区蓝色区 | 四虎免费影院4hu永久免费 | 男生同性视频twink在线 | 国产精品久久国产精品99盘 | 免费av在线视频 | 短篇小说肉| 国模丰满美女冰漪34d | 精品午夜久久福利大片免费 | 欧美人体高清在线观看ggogo | 免费精品视频在线 | 4hc44四虎www在线影院男同 | 草草线在成年免费视频网站 | 国产91网站在线观看 | ai换脸明星造梦工厂忘忧草 | 高清麻生希在线 | 韩国丽卡三级作品 | 99热免费在线 | 思思玖玖玖在线精品视频 | 国产成人综合网亚洲欧美在线 | 91精品国产免费久久国语蜜臀 | 天天曰 | 欧美乱子伦xxxx12在线 | 日本老妇和子乱视频 | 国产主播精品在线 | 97porm国内自拍视频 | 免费看视频网站 | 91精品91| 1314酒色 | 亚洲高清在线视频 | 亚洲成人贴图 |