Class: Block

Block(reporter, settings)

Unit of geometric configuration and pricing Blocks can be connected to other blocks through connectors.

Constructor

new Block(reporter, settings)

Parameters:
Name Type Description
reporter Reporter
settings Object
Properties
Name Type Attributes Default Description
id UUID <optional>
name string <optional>
userData Object <optional>
categories Array.<BlockCategory> <optional>
theme Theme <optional>
dimensions Object <optional>
dimensionsCenter Object <optional>
dimensionsImage WrappedImage <optional>
thumbnail WrappedImage <optional>
connectors Array.<Connector> <optional>
positionedMeshes Array.<PositionedMesh> <optional>
positionedMeshGroups Array.<PositionedMeshGroup> <optional>
assignable Boolean <optional>
true
Source:

Members

connectors :Array.<Connector>

Type:
Source:

distinctMeshes :Array.<WrappedMesh>

All (wrapped) meshes that are (indirectly) referenced in this block
Type:
Source:

distinctMeshesPerMVG :Object.<UUID, Array.<PositionedMesh>>

Type:
Source:

distinctMVGs :Array.<MaterialSet>

Material variant groups that are referenced by at least one of the meshes in this block
Type:
Source:

distinctPositionedMeshes :Array.<PositionedMesh>

All positioned meshes that are (directly and indirectly) referenced in this block
Type:
Source:

subAssignables :Array.<SubAssignable>

The assignables this block offers, includes the block itself if it is assignable
Type:
Source:

Methods

(async) _build(part, quality, dependencies) → {Promise.<Block>}

Build
Parameters:
Name Type Description
part ComponentPart
quality LoadingQuality
dependencies Object.<string, Component>
Source:
Returns:
Type
Promise.<Block>