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
                主站蜘蛛池模板: 亚洲专区中文字幕| 国产99视频精品草莓免视看| 一区二区三区中文字幕| 日韩精品无码成人专区| 人妻在线无码一区二区三区| 视频二区三区国产情侣在线| 国产精品极品美女自在线| 一级做a爰片性色毛片中国| 日韩在线视频网址| 亚洲欧美日韩国产精品一区二区 | 精品国产精品国产| 国产欧美一区二区三区在线看| igao激情在线视频免费| 日本一品道门免费高清视频| 亚洲另类欧美综合久久图片区| 粗大的内捧猛烈进出在线视频 | 国产日韩欧美不卡在线二区| 99久久精品国产一区二区三区| 扒开女人双腿猛进猛出免费视频| 亚洲2022国产成人精品无码区| 欧美高清视频www夜色资源| 十分钟免费视频高清完整版www| 露脸国语对白视频| 国产激情视频在线播放| 97人妻人人做人碰人人爽| 小h片在线播放| 中文字幕精品无码亚洲字| 日韩欧美一区黑人vs日本人| 亚洲国产欧美在线看片一国产 | heyzo在线| 成人无码嫩草影院| 久久国产精品视频一区| 欧美一级在线观看视频| 亚洲武侠欧美自拍校园| 秋霞免费一级毛片| 噜噜影院无毒不卡| 被女同桌调教成鞋袜奴脚奴| 国产成人精品亚洲2020| 最新精品亚洲成a人在线观看| 在线播放无码后入内射少妇| 一区二区三区高清视频在线观看|