Class LatheGeometry

Hierarchy

Constructors

Properties

__class__: "LatheGeometry"
assetId: string

资源编号

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

属性数据列表

Type declaration

事件发射器。

indexBuffer: ElementBuffer

顶点索引缓冲

name: string
phiLength: number = ...
phiStart: number = 0
points: Vector2[] = ...
scaleU: number = 1

纹理U缩放,默认为1。

scaleV: number = 1

纹理V缩放,默认为1。

segments: number = 12

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: any[];
        normals: any[];
        positions: any[];
        uvs: any[];
    }

    • indices: any[]
    • normals: any[]
    • positions: any[]
    • uvs: any[]

Generated using TypeDoc