Class TorusKnotGeometry

Hierarchy

Constructors

Properties

__class__: "TorusKnotGeometry"
assetId: string

资源编号

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

属性数据列表

Type declaration

事件发射器。

indexBuffer: ElementBuffer

顶点索引缓冲

name: string
p: number = 2
q: number = 3
radialSegments: number = 8
radius: number = 1
scaleU: number = 1

纹理U缩放,默认为1。

scaleV: number = 1

纹理V缩放,默认为1。

tube: number = 0.4
tubularSegments: number = 64

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