Copyright © 2021 by K4.org
  (v.0.48.124)

The LineMaterial Design defines a material for 'wire' objects. It is similar to Material, except all surface-related render features are removed, and wire-related features are added.

Index

Rules

__mod3

__mod3: String

Internal Use Only.

Flags : Cached, External, Update (Note this is uncached)

Expression : R.THREE.makeMaterial(this.materialName, this.materialType, this.spec)

color

color: String

The color to actually use in this material. This is the color attribute of the wire. This should be an RGB value or an existing predefined color name.

Flags : Cached, Parameter (Note this is uncached)

Expression : "Default"

colorName

colorName: String

The name of this material. This forces the material to be inserted into the material table.

Flags : Cached (Note this is uncached)

Expression : this.__mod3; return this.materialName;

dashPattern

dashPattern: Array

An array of lengths, in world units, for dashes and gaps of a repeating pattern. A length of zero will create a 'dot' in the pattern. This will always be an array of even length.

Flags : Cached, Parameter (Note this is uncached)

Expression : [this.dashSize, this.gapSize]

dashSize

dashSize: Number

The length of a dash in world units.

Flags : Cached, Parameter (Note this is uncached)

Expression : 0.5

gapSize

gapSize: Number

The length of a gap in world units.

Flags : Cached, Parameter (Note this is uncached)

Expression : this.dashSize/2

lineWeight

lineWeight: Number

The relative thickness of the wire, where 1.0 is 'normal'. Zero is the minimum renderable thickness, which can be invisible in some environments (like PDF).

Flags : Cached, Parameter (Note this is uncached)

Expression : 1.0

materialName

materialName: String

The name the material will be stored under in the materials table. Thereafter using this in a color parameter will use this specification. It is also possible to override existing materials this way.

Flags : Cached, Required, Parameter (Note this is uncached)

Expression : ``

materialType

materialType: String

One of 'linebasic' or 'linedashed'. Note: linebasic does not respect the weight or dashing parameters. To make a solid 'thick' line, use a gapSize of 0.

Flags : Cached, Parameter (Note this is uncached)

Expression : "linedashed"

receiveFog

receiveFog: Boolean

Whether the material is affected by fog. Default is true.

Flags : Cached, Parameter (Note this is uncached)

Expression : true

spec

spec: Any

Internal Use Only.

Flags : Cached (Note this is uncached)

Expression : {color: this.color, dashPattern: this.dashPattern, linewidth: this.lineWeight, fog: this.receiveFog }