Class Object3D

Class that has all the relevant geometries/data/animations for specific object.

Author

Matej Hakoš

Hierarchy

  • Object3D

Constructors

Properties

file: File

Input file.

fileID: string

Name parsed from file.

geometry: BufferGeometry

Computed Buffer Geometry.

mesh: Mesh<BufferGeometry, Material | Material[]>

Computed Mesh.

outline: Mesh<BufferGeometry, Material | Material[]>

Computed Mesh of outline (double-click).

Last drawn pose

Methods

  • Adds to the position of object.

    Parameters

    • position: Vector3 | [number, number, number]

    Returns void

  • Adds to the rotation of the object.

    Parameters

    • rotation: Quaternion

    Returns void

  • Private

    Builds Mesh based on geometry and file.

    Returns

    Parameters

    • geometry: BufferGeometry
    • file: File

    Returns Mesh<BufferGeometry, MeshStandardMaterial>

  • Private

    Builds outline based on data from object.

    Returns

    Parameters

    • geometry: BufferGeometry

    Returns Mesh<BufferGeometry, Material | Material[]>

  • Returns material of emissive (highlight color)

    Returns

    Returns Material | Material[]

  • Returns Mesh of the object.

    Returns

    Returns Mesh<BufferGeometry, Material | Material[]>

  • Returns outline of the Mesh.

    Returns

    Returns Mesh<BufferGeometry, Material | Material[]>

  • Sets data (position & rotation) from mesh to outline.

    Returns void

  • Sets outline color.

    Parameters

    • selectionColor: undefined | string | Color

    Returns void

  • Sets data (position & rotation) from outline to mesh.

    Returns void

  • Sets position of object to specific location.

    Parameters

    • position: Vector3

    Returns void

  • Sets rotation of object.

    Parameters

    • rotation: Quaternion

    Returns void

  • Set scaling for object (and also outline).

    Parameters

    • x: number
    • y: number
    • z: number

    Returns void

Generated using TypeDoc