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

This mixin provides direct support for three.js modeling and rendering.

Index

Rules

__mat3

__mat3: String

Internal Use Only

Flags : Cached (Note this is uncached)

Expression : R.THREE.setMaterial(this.__mod3, this.color)

__mod3

__mod3: String

Internal Use Only

Flags : Cached, External (Note this is uncached)

Expression : R.THREE.makeAssy(this.renderName)

__pm3

__pm3: String

Internal Use Only

Flags : Cached (Note this is uncached)

Expression : this.__pos3; return this.__mod3;

__pos3

__pos3: String

Internal Use Only

Flags : Cached, External (Note this is uncached)

Expression : this.parent.__pos3; return R.THREE.setPosition(this.renderName, null, this.userData, ...this.localTransform.m43());

bbox

bbox: Any

The bounding box for this branch.

Flags : Cached (Note this is uncached)

Expression : let bb = this.bboxLocal; this.children.forEach(c => bb = c.hasRule('bbox') ? bb.union(c.bbox) : bb); return bb;

bboxLocal

bboxLocal: Any

The bounding box for this node, not including the children.

Flags : Cached (Note this is uncached)

Expression : R.THREE.getBB(this.__pm3)

castShadow

castShadow: Boolean

Determines whether this object can cast shadows. Shadows must be enabled in the scene for this to take effect.

Flags : Cached, Parameter (Note this is uncached)

Expression : true

color

color: String

Defines the color or material of this model. If not supplied, the parent's color is used.

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

Expression : "Default"

edgeStyle

edgeStyle: Any

Defines the styling of the edge geometry. See LineMaterial for more information. All possible options:

{ edgeWeight: 1, // lineWeight of the visible edges. Default is 1. edgeColor: 'black', // color of the visible edges. Default is 'black'. hiddenEdgeWeight: 1, // lineWeight of the hidden edges. Default is 1. hiddenEdgeColor: 'gray', // color of the hidden edges. Default is 'gray'. hiddenEdgeDashPattern: [10,5] // dash pattern of the hidden edges. Default is [10,5]. }

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

Expression : undefined

excludeFromBB

excludeFromBB: Boolean

Defines whether the geometry of this model is excluded from the bounding box. If not supplied, the parent's value is used.

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

Expression : false

isSelectable

isSelectable: Boolean

Set this to true to allow this model to be selected in a graphics window.

Flags : Cached, Parameter (Note this is uncached)

Expression : false

layer

layer: String

Defines the layer membership of this model. If not supplied, the parent's layer is used. Layer names can include spaces and underscores, but leading double-underscores are reserved for kernel use. Use of colon, comma, and period are not permitted. If transferring data to other systems, their layer naming restrictions should be respected.

Flags : Cached, Parameter (Note this is uncached)

Expression : this.nha.layer

receiveShadow

receiveShadow: Boolean

Determines whether this object can recieve shadows. Shadows must be enabled in the scene for this to take effect.

Flags : Cached, Parameter (Note this is uncached)

Expression : true

renderChildren

renderChildren: Boolean

Controls whether the children of this model will be shown.

Flags : Cached, Parameter (Note this is uncached)

Expression : this.show

renderName

renderName: String

The unique name for this model inside the rendering engine.

Flags : Cached (Note this is uncached)

Expression : this.refChain

renderNode

renderNode: Boolean

Set to true to force this node to render if it has geometry. By default, non-leaf geometry does not render.

Flags : Cached, Parameter (Note this is uncached)

Expression : this.children.length === 0

renderStyle

renderStyle: String

One of 'default', 'wireframe', 'shaded', 'shadedEdges', 'hiddenLine', or 'hiddenLineDashed'. Default means that renderStyle will be taken from Scene or Viewport.

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

Expression : "default"

sceneName

sceneName: String

Sets the scene into which this model will be inserted.

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

Expression : "model"

show

show: Boolean

Set to false to prevent this branch from display.

Flags : Cached, Parameter (Note this is uncached)

Expression : this.nha.renderChildren

showModel

showModel: String

This demands the model to be rendered on the client.

Flags : Cached, External (Note this is uncached)

Expression : (this.show && this.renderNode) ? R.THREE.showModel( this.renderName, this.__pos3, this.__mod3, this.__mat3, true ) : R.nullHandle

update3

update3: Boolean

This is the primary 'Update' driver for rendered models.

Flags : Cached, Update (Note this is uncached)

Expression : this.suppressUpdate ? false : (this.showModel, true)

userData

userData: Any

Experimental

Flags : Cached, Parameter (Note this is uncached)

Expression : null