如视 Five SDK
    Preparing search index...

    Class PointBufferGeometry

    Hierarchy

    • BufferGeometry
      • PointBufferGeometry
    Index

    Constructors

    • A THREE.BufferGeometry consists of points.

      Parameters

      • count: number

        The number of points.

      Returns PointBufferGeometry

    Properties

    pointCount: number

    Methods

    • Returns void

    • Creates a THREE.BufferAttribute on this geometry instance.

      Parameters

      • name: string

        Name of the attribute.

      • itemSize: number

        Number of floats per vertex (typically 1, 2, 3 or 4).

      • Optionalfactory: (data: any[], index: number, pointCount: number) => void

        Function that will be called for each point upon creation. Accepts 3 arguments: data[], index and prefabCount. Calls setPointData.

      Returns BufferAttribute

    • Parameters

      • attribute: string | BufferAttribute
      • pointIndex: number
      • data: any[]

      Returns void