Documentation - v20.0.0-dev
    Preparing search index...

    The state of a SceneMesh an ObjectStateController tracks and restores: its object state (visibility, layer, transform) and its material, edges, cutting and line style.

    interface MeshState {
        diffuseColor: ColorRepresentation;
        edgesColor: ColorRepresentation;
        edgesOpacity: number;
        edgesVisible: boolean;
        emissiveColor: ColorRepresentation;
        facesVisible: boolean;
        ignoreCuttingPlanes: boolean;
        layer: MeshLayer;
        lineStyle: LineStyle | null;
        matrix: SerializedMatrix4;
        metalness: number;
        opacity: number;
        roughness: number;
        visible: boolean;
        xRay: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    diffuseColor: ColorRepresentation
    edgesOpacity: number
    edgesVisible: boolean
    emissiveColor: ColorRepresentation
    facesVisible: boolean
    ignoreCuttingPlanes: boolean

    Whether the cutting planes leave it whole.

    layer: MeshLayer

    The layer it is drawn in (see SceneObject.layer).

    lineStyle: LineStyle | null

    The style of its lines; null when drawn 1 pixel wide.

    metalness: number
    opacity: number
    roughness: number
    visible: boolean
    xRay: boolean