Class CommonObject

Hierarchy (view full)

Constructors

Properties

isValid: boolean

Tests an object to see if it is valid.

isValidWithLog: [boolean, string]

...

userStringCount: number

Gets the amount of user strings.

Methods

  • Parameters

    • key: string

      id used to retrieve the string.

    Returns string

    string associated with the key if successful. null if no key was found.

    Description

    Gets user string from this geometry.

  • Returns string[]

    Description

    Gets a copy of all (user key string, user value string) pairs attached to this geometry.

  • Parameters

    • key: string

      id used to retrieve this string.

    • value: string

      string associated with key.

    Returns boolean

    true if successful, false if not.

    Description

    Attach a user string (key,value combination) to this geometry.

  • Returns string

    Description

    Create a JSON string representation of this object

  • Parameters

    • json: object

      A json formatted object in the following format (values are orientative):

      {
      version: 10000,
      archive3dm: 60,
      opennurbs: -1877964208,
      data: 'encoded 3dm object data'
      }

    Returns CommonObject

    Description

    Decodes a Rhino Object

Generated using TypeDoc