高清在线一区二区_激情网在线观看_激情一区二区三区_精品中文一区_亚洲中字幕_亚洲天堂一区

GeometryInstance

幾何體實(shí)例化允許一個Geometry對象在多個不同的位置,并且顏色獨(dú)特。例如,一個BoxGeometry可以多次實(shí)例化,每個BoxGeometry具有不同的modelMatrix來更改其位置、旋轉(zhuǎn)和比例。
new GeometryInstance(options)
Parameters:
options (Object)
Name Description
options.geometry
Geometry
要實(shí)例的幾何體。
options.modelMatrix
Matrix4
default Matrix4.IDENTITY
將幾何體從模型轉(zhuǎn)換為世界坐標(biāo)的模型矩陣。
options.id
Object
使用Scene#pick或使用Primitive#getGeometryInstanceAttributes獲取/設(shè)置每個實(shí)例屬性時要返回的用戶定義對象。
options.attributes
Object
每個實(shí)例的屬性,如下面示例中顯示的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

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

geometry : Geometry

正在實(shí)例化的幾何體。
Default Value: undefined

id : Object

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

modelMatrix : Matrix4

將幾何體從模型坐標(biāo)轉(zhuǎn)換為世界坐標(biāo)的4x4轉(zhuǎn)換矩陣。當(dāng)這是單位矩陣時,幾何圖形以世界坐標(biāo)繪制,即地球的wgs84坐標(biāo)。本地參考幀可以通過提供不同的轉(zhuǎn)換矩陣來使用,如Transforms.eastNorthUpToFixedFrame返回的轉(zhuǎn)換矩陣。
Default Value: Matrix4.IDENTITY
主站蜘蛛池模板: 日韩精品一区二区在线播放 | 免费黄色入口 | 国产羞羞视频 | 久久久综合视频 | 操碰 | 欧美成人午夜一区二区三区 | 日本一区二区免费在线播放 | 亚洲福利视 | 男女羞羞视频在线观看免费 | 国产精品成人亚洲一区二区 | 欧美性色生活片免费播放 | 色中射| 日韩av片网站 | 国产一级毛片在线看 | 久久综合伊人 | 欧美一级做 | 欧美一区高清 | 久久久久免费精品 | 国产免费久久久久 | 成人国产在线视频 | 内地av在线 | 羞羞视频.www在线观看 | 麻豆自拍偷拍视频 | 鲁一鲁一鲁一鲁一曰综合网 | 免费人成在线播放 | 久久精品一区二区三区四区五区 | 一本色道久久综合亚洲精品图片 | 亚洲成人免费影视 | 欧美一级免费高清 | 久草网在线 | china对白普通话xxxx | 草久影视 | 久久综合九色综合久久久精品综合 | 免费看污视频在线观看 | 成人av一二三区 | 成人午夜视屏 | 国产高潮失禁喷水爽到抽搐视频 | 色综合狠狠| 黑人操穴| 欧洲精品色 | 看片一区 |