Class CylinderGeometry

圆柱体几何体

Author

DawnKing 2016-09-12

Hierarchy

Implements

Constructors

Properties

__class__: "CylinderGeometry"
assetId: string

资源编号

assetType: AssetType = AssetType.geometry
attributes: {
    [key: string]: AttributeBuffer;
} = {}

属性数据列表

Type declaration

bottomClosed: boolean = true

底部是否封口

bottomRadius: number = 0.5

底部半径

事件发射器。

height: number = 2

高度

indexBuffer: ElementBuffer

顶点索引缓冲

name: string = 'Cylinder'
scaleU: number = 1

纹理U缩放,默认为1。

scaleV: number = 1

纹理V缩放,默认为1。

segmentsH: number = 1

纵向分割数

segmentsW: number = 16

横向分割数

surfaceClosed: boolean = true

侧面是否封口

topClosed: boolean = true

顶部是否封口

topRadius: number = 0.5

顶部半径

yUp: boolean = true

是否朝上

Accessors

Methods

  • 射线投影几何体

    Parameters

    • ray: Ray3

      射线

    • shortestCollisionDistance: number = Number.MAX_VALUE

      当前最短碰撞距离

    • cullFace: CullFace = 'NONE'

      裁剪面枚举

    Returns {
        index: number;
        localNormal: Vector3;
        localPosition: Vector3;
        rayEntryDistance: number;
        uv: Vector2;
    }

  • 构建几何体数据

    Parameters

    Returns {
        indices: number[];
        normals: number[];
        positions: number[];
        tangents: number[];
        uvs: number[];
    }

    • indices: number[]
    • normals: number[]
    • positions: number[]
    • tangents: number[]
    • uvs: number[]

Generated using TypeDoc