在线免费看污_亚洲视频在线免费观看_91精品国产电影_久久国产亚洲_久久四虎影院_亚洲欧美a_国产精品一区二区三

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在线 | 免费看日漫 | 91亚洲国产在人线播放午夜 | 久草免费在线 | 日本中文字幕在线视频 | 国产精品视频一区二区猎奇 | 国产一区二区精品久久 | 亚洲成av人片在线观看天堂无码 | 欧美人体一区二区三区 | 日本一区二区三区在线 观看网站 | 日本一区二区三区在线看 | 日本中文字幕在线视频站 | 久久99久久99精品免观看 | 91视频综合网 | 欧美日韩一区二区在线视频 | 国产黄网站 | 欧洲亚洲综合一区二区三区 | 天天色色网 | 特黄特色大片免费视频大全 | 国产福利午夜波多野结衣 | 日本在线观看一区二区三区 | 日本aⅴ永久免费网站www | 久久久久国产一级毛片高清版 | 97在线碰 | 日本一线a视频免费观看 | 欧美性受xxxx狂喷水 | 久久伊人男人的天堂网站 | 99久久精品免费看国产一区二区三区 | 欧美亚洲自拍偷拍 | 青青久久久国产线免观 | 国产69精品久久久久999三级 | 久久国产精品一国产精品 | 在线观看日本www | 欧美黄色录像 | 国产在线a | 一级片a级片 |