Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LineGeometry

线段预设几何体

Hierarchy

Index

Constructors

Properties

_append: any
_indexes: any
_indices: any
_isSamePoint: any

比较两点是否处于同一位置

param aIdx

点A的顺序索引

param bIdx

点A的顺序索引

returns

{boolean}

memberof

LineGeometry

_lastGroupIdx: any
_lineSides: any
_lineWidthScales: any
_nexts: any
_positions: any
_prevs: any
_pushTwice: any

点的数据push两次到position中

param data
param idx
param [isHalfReverse]
memberof

LineGeometry

_pushTwiceVector3: any

点的数据push两次到position中

param data
param idx
param [isHalfReverse]
memberof

LineGeometry

_reverse: any
_uvs: any
bbox: BBox
colors: Float32Array
coreData: CoreData
indexes: Float32Array
indices: Uint16Array
lineSides: number[]
lineWidthScales: number[]
name: string
nexts: number[]
normals: Float32Array
positions: Float32Array
prevs: number[]
tangents: Float32Array
uuid: string
uvs: Float32Array
widthFn: ((percent?: number) => number)

Type declaration

    • (percent?: number): number
    • Parameters

      • Optional percent: number

      Returns number

Accessors

  • Returns MorphTarget

  • get vertexCount(): number
  • Returns number

Methods

  • _setMacroByKey(macroKey: string, data?: { length: number }): void
  • Parameters

    • macroKey: string
    • Optional data: { length: number }
      • length: number

    Returns void

  • afterInit(): void
  • 最终数据写入

    memberof

    LineGeometry

    Returns void

  • computeNormals(): void
  • 计算法线

    memberof

    Geometry

    Returns void

  • computeTangents(): void
  • 计算切线 请务必确保在Normals、UVs更新后再调用

    memberof

    Geometry

    Returns void

  • initLines(pointsGroup: (number | Vector3)[][]): void
  • 初始化线数据

    memberof

    LineGeometry

    Parameters

    • pointsGroup: (number | Vector3)[][]

    Returns void

  • resetBBox(): void
  • 根据位置数据重置包围盒

    Returns void

  • setAttribute(key: string, bufferData: BufferData): void
  • 设置属性

    Parameters

    • key: string

      属性名称

    • bufferData: BufferData

      属性数据

    Returns void

  • 设置包围盒

    Parameters

    Returns void

  • 从Geometry中生成点集,并设置线

    Parameters

    Returns void

  • 由一组点设置线段

    memberof

    LineGeometry

    Parameters

    Returns void

    {void}

  • setGroupSpecData(pointCount: number, offset?: number): void
  • 生成线段详细数据

    memberof

    LineGeometry

    Parameters

    • pointCount: number

      当前处理的线段组的点个数

    • Optional offset: number

    Returns void

  • setMacro(key: string, enable: boolean): void
  • 设置宏

    Parameters

    • key: string

      宏键名

    • enable: boolean

      是否开启

    Returns void

Generated using TypeDoc