Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Object3DUtils

internal

Index

Interfaces

Functions

Functions

estimateSize

  • estimateSize(object: Object3D, parentSize?: MemoryUsage, visitedObjects?: Map<string, boolean>): MemoryUsage
  • Computes estimate for size of a THREE.Object3D object and its children. Shared materials and/or attributes will be counted multiple times.

    Parameters

    • object: Object3D

      The mesh object to evaluate

    • Optional parentSize: MemoryUsage
    • Optional visitedObjects: Map<string, boolean>

      Optional map to store large objects that could be shared.

    Returns MemoryUsage

    Estimate of object size in bytes for heap and GPU.

Generated using TypeDoc