Class CircleGeometry

圆片

Hierarchy

Constructors

Properties

__class__: "CircleGeometry"
assetId: string

资源编号

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

属性数据列表

Type declaration

事件发射器。

indexBuffer: ElementBuffer

顶点索引缓冲

name: string
radius: number = 1

半径

scaleU: number = 1

纹理U缩放,默认为1。

scaleV: number = 1

纹理V缩放,默认为1。

segments: number = 8

分段数量

thetaLength: number = ...

弧长

thetaStart: number = 0

起始弧度

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