Class File3dmLayerTable

Constructors

Properties

Methods

Constructors

Properties

count: number

Methods

  • Parameters

    • name: string

      new layer name

    • color: object

      new layer color in js object format: {r:number, g:number, b:number)} where number is from 0 - 255

    Returns number

    If layer_name is valid, the layer's index (>=0) is returned. Otherwise, RhinoMath.UnsetIntIndex is returned.

    Description

    Easy way to add a new layer to the model

  • Parameters

    • index: number

      The index to search for.

    Returns Layer

    A Layer object, or null if none was found.

    Description

    Retrieves a Layer object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.

  • Parameters

    • name: string

      The name of the Layer to be searched.

    • parentId: string

      The id of the parent Layer to be searched.

    Returns Layer

    A Layer, or null on error.

    Description

    Finds a Layer given its name.

Generated using TypeDoc