国产久_亚欧精品一区_久久亚洲美女_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
主站蜘蛛池模板: 天天射天天拍 | 欧美成人三级 | 一级看片免费视频 | 一级做性色a爱片久久毛片欧 | av不卡免费 | 亚洲国产免费av | 久久国产精99精产国高潮 | 欧美狠狠 | 密色视频 | 日韩一区欧美二区 | 亚洲视频在线播放 | 精品免费国产 | 中文字幕精品一区二区三区在线 | 一级毛片在线视频 | 好色视频在线观看 | www.色悠悠 | 狠狠躁天天躁夜夜躁婷婷 | 日本一级在线观看 | 欧美一区二区三区在线观看 | 欧美一级片毛片免费观看视频 | 日韩黄色在线 | 日本黄色免费片 | 国产小视频免费在线观看 | 免费观看91视频 | 日韩不卡一区二区三区 | 一级毛片免费高清视频 | 色操插 | 日韩一级片在线播放 | 日本免费一区二区三区 | 欧美一级特黄aaaaaaa在线观看 | 性一交一乱一区二区洋洋av | 亚洲视频在线看 | 成人免费毛片色戒 | 麻豆视传媒官网免费观看 | 四虎影视在线播免费观看 | 99色视频在线观看 | 国产一区二区三区免费播放 | 西安护栏厂家联系方式 | 久久婷婷国产综合国色天香 | 亚洲日本视频在线观看 | 亚州春色|