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

Geometry

一種幾何表示法,具有構成頂點的屬性和定義基元的可選索引數據。幾何圖形和描述陰影的Appearance可分配給Primitive進行可視化。APrimitive可以從許多異構(在許多情況下)幾何結構中創建,以提高性能。

幾何圖形可以使用GeometryPipeline中的函數進行轉換和優化。

new Geometry(options)
Parameters:
options (Object)
Name Description
options.attributes
GeometryAttributes
組成幾何體頂點的屬性。
options.primitiveType
PrimitiveType
default PrimitiveType.TRIANGLES
幾何體中基本體的類型。
options.indices
(Uint16Array | Uint32Array)
用于確定幾何體中基本體的可選索引數據。
options.boundingSphere
BoundingSphere
完全包圍幾何體的可選邊界球體。
Example
// Create geometry with a position attribute and indexed lines.
var positions = new Float64Array([
  0.0, 0.0, 0.0,
  7500000.0, 0.0, 0.0,
  0.0, 7500000.0, 0.0
]);

var geometry = new bmgl.Geometry({
  attributes : {
    position : new bmgl.GeometryAttribute({
      componentDatatype : bmgl.ComponentDatatype.DOUBLE,
      componentsPerAttribute : 3,
      values : positions
    })
  },
  indices : new Uint16Array([0, 1, 1, 2, 2, 0]),
  primitiveType : bmgl.PrimitiveType.LINES,
  boundingSphere : bmgl.BoundingSphere.fromVertices(positions)
});
See:

Members

attributes : GeometryAttributes

組成幾何體頂點的屬性。此對象中的每個屬性對應于包含屬性數據的GeometryAttribute

屬性始終不交錯存儲在幾何圖形中。

有保留的具有眾所周知語義的屬性名。以下屬性由幾何圖形創建(取決于提供的VertexFormat)。

  • position-三維頂點位置。64位浮點(用于精度)。每個屬性3個組件。見VertexFormat#position.
  • normal-正常(標準化),通常用于照明。32位浮點。每個屬性3個組件。見VertexFormat#normal.
  • st-2d紋理坐標。32位浮點。每個屬性2個組件。參見VertexFormat#st.
  • bitangent-位范圍(標準化),用于切線空間效果,如凹凸貼圖。32位浮點。每個屬性3個組件。參見VertexFormat#bitangent.
  • tangent-切線(標準化),用于切線空間效果,如凹凸貼圖。32位浮點。每個屬性3個組件。請參見VertexFormat#tangent

以下屬性名稱通常不是由幾何體創建的,而是由PrimitiveGeometryPipeline函數添加到幾何體以準備渲染幾何體。

  • {position3DHigh-編碼64位位置用GeometryPipeline.encodeAttribute計算的高32位。32位浮點。每個屬性4個組件。
  • position3DLow-編碼64位位置的低32位,用GeometryPipeline.encodeAttribute計算。32位浮點。每個屬性4個組件。
  • position3DHigh-使用GeometryPipeline.encodeAttribute計算的編碼64位二維(Columbus視圖)位置的高32位。32位浮點。每個屬性4個組件。
  • position2DLow-使用GeometryPipeline.encodeAttribute計算的編碼64位二維(哥倫布視圖)位置的低32位。32位浮點。每個屬性4個組件。
  • color-rgba顏色(標準化),通常從GeometryInstance#color開始。32位浮點。每個屬性4個組件。
  • pickColor-用于拾取的rgba顏色。32位浮點。每個屬性4個組件。

Default Value: undefined
See:
Example:
geometry.attributes.position = new bmgl.GeometryAttribute({
  componentDatatype : bmgl.ComponentDatatype.FLOAT,
  componentsPerAttribute : 3,
  values : new Float32Array(0)
});

boundingSphere : BoundingSphere

完全包圍幾何體的可選邊界球體。這通常用于剔除。
Default Value: undefined

indices : Array

可選索引數據,與Geometry#primitiveType一起確定幾何體中的基本體。
Default Value: undefined

primitiveType : PrimitiveType

幾何體中基本體的類型。這通常是PrimitiveType.TRIANGLES,但可以根據特定的幾何圖形變化。
Default Value: undefined

Methods

(static) computeNumberOfVertices(geometry) → {Number}
計算幾何體中的頂點數。運行時相對于頂點中的屬性數是線性的,而不是頂點數。
Parameters:
geometry (Geometry) 幾何圖形。
Example
var numVertices = bmgl.Geometry.computeNumberOfVertices(geometry);
主站蜘蛛池模板: 日韩一区视频在线 | jizz农村野外jizz农民 | 欧美日韩亚洲高清不卡一区二区三区 | 国产在线伊人 | 成年人免费在线视频 | 亚洲视频在线免费看 | 草草线在成年免费视频网站 | 亚洲欧美精品一区二区 | 91啦中文在线观看 | 午夜影院在线免费观看 | 日韩日日日| 99热免费在线观看 | 欧美精品久久久久久久影视 | 97se狠狠狠狠狼亚洲综合网 | 国产a一级毛片午夜剧院 | 91夜色视频| 91啦中文在线观看 | 九九99亚洲精品久久久久 | 满溢游泳池免费土豪全集下拉版 | beeg日本高清xxxx18 | 国产成人精品在线观看 | 麻豆网站视频国产在线观看 | 精品久久免费观看 | 全彩调教侵犯h本子全彩妖气he | 精品国产免费观看一区高清 | 亚洲香蕉综合在人在线视看 | 欧美成人手机 | 17岁韩国在线观看免费1 | 免费看成年视频网页 | 99热久久这里只精品国产www | 热门小说同人h改编h | 欧美四虎影院 | 性柔术xxxhd 性派对videos18party | 欧亚专线欧洲m码可遇不可求 | 草草影院永久在线观看 | 亚洲高清在线天堂精品 | 四虎影免看黄 | 免费国产好深啊好涨好硬视频 | 天美传媒tm0087 | 性欧美高清理论片 | 免费永久观看美女视频网站网址 |