Class: Criteria

SolidML.Criteria()

Represents a criteria of the structure, specified as "set [key] [value]" in script. Keep any user-defined criteria for your own purpose. SolidML.Criteria#getValue method refers them.

Constructor

new Criteria()

SolidML.Criteria is created in the constructor of SolidML.
Source:

Members

background :string

background color in #HEX type string. set null to use system defined background. default is null
Type:
  • string
Source:

colorpool :string

colorpool referd from "color rondom" command. default is "randomrgb"
Type:
  • string
Source:

maxdepth :int

maximum depth to terminate recursive rule calls. default is 2000
Type:
  • int
Source:

maxobjects :int

maximum object count to terminate constuction. default is 1000000
Type:
  • int
Source:

maxsize :number

maximun size to create object, check [the 3dim-determinant of matrix] > [maxsize] ^ 3. default is 10000
Type:
  • number
Source:

minsize :number

minimun size to create object, check [the 3dim-determinant of matrix] < [minsize] ^ 3. default is 0
Type:
  • number
Source:

seed :int

seed number for Mersenne Twister random number generator. set null to seed by time. detfault is null
Type:
  • int
Source:

systemMaxDepth :int

the maximum limit of SolidML.Criteria.maxdepth. default is 5000
Type:
  • int
Source:

systemMaxObjects :int

the maximum limit of SolidML.Criteria.maxobjects. default is 5000000
Type:
  • int
Source:

Methods

getValue(key, type) → {any}

get criterla by key and type
Parameters:
Name Type Description
key string criteria name
type string criteria value type "number", "int", "color", "array" or "string" is available. the "string" type returns the raw string data in script.
Source:
Returns:
value for specified criteria
Type
any