Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExtrudeGeometry

Hierarchy

Index

Constructors

Properties

_enableUV: any
_normals: any
_positions: any
_uvs: any
bbox: BBox
bevelEnabled: boolean
bevelOffset: number
bevelSegments: number
bevelSize: number
bevelThickness: number
colors: Float32Array
coreData: CoreData
curveSegments: number
depth: number
indexes: Float32Array
indices: Uint16Array
name: string
normals: Float32Array
placeholder: number[]
positions: Float32Array
shapes: Shape[]
steps: number
tangents: Float32Array
uuid: string
uvs: Float32Array

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

  • addShape(shape: Shape): void
  • 添加shape todo extrudeByPath

    memberof

    ExtrudeGeometry

    Parameters

    Returns void

  • Parameters

    Returns void

  • addVertex(index: number): void
  • Parameters

    • index: number

    Returns void

  • buildLidFaces(vertices: Vector2[], faces: number[][]): void
  • Parameters

    • vertices: Vector2[]
    • faces: number[][]

    Returns void

  • Parameters

    Returns void

  • computeNormal(): void
  • 计算法线 todo index

    memberof

    ExtrudeGeometry

    Returns void

  • computeNormals(): void
  • 计算法线

    memberof

    Geometry

    Returns void

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

    memberof

    Geometry

    Returns void

  • faceFour(a: any, b: any, c: any, d: any): void
  • Parameters

    • a: any
    • b: any
    • c: any
    • d: any

    Returns void

  • faceThree(a: any, b: any, c: any): void
  • Parameters

    • a: any
    • b: any
    • c: any

    Returns void

  • init(): void
  • 初始化

    memberof

    ExtrudeGeometry

    Returns void

  • pushPlaceHolder(x: any, y: any, z: any): void
  • Parameters

    • x: any
    • y: any
    • z: any

    Returns void

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

    Returns void

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

    Parameters

    • key: string

      属性名称

    • bufferData: BufferData

      属性数据

    Returns void

  • 设置包围盒

    Parameters

    Returns void

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

    Parameters

    • key: string

      宏键名

    • enable: boolean

      是否开启

    Returns void

  • sidewalls(contour: Vector2[], layerOffset: number, vLen: number): void
  • Parameters

    • contour: Vector2[]
    • layerOffset: number
    • vLen: number

    Returns void

Generated using TypeDoc