Options
All
  • Public
  • Public/Protected
  • All
Menu

The CrossSectioner class is here.

Hierarchy

  • CrossSectioner

Index

Constructors

Methods

Constructors

Methods

  • update(crossSectioning: CrossSectioning): Promise<undefined | IUpdateCrossSectioningResult>
  • Performs request on the stream to update the cross sectioning config.

    example
    const viewer = document.querySelector("vertex-viewer");
    const scene = await viewer.scene();
    const crossSectioner = scene.crossSectioning();

    await scene.crossSectioning().update({
    sectionPlanes: [
    {
    normal: {
    x: 1,
    y: 0,
    z: 0,
    },
    offset: 0,
    },
    ],
    highlightColor: Color.fromHexString("#ff0000"),
    lineWidth: 0.5,
    });
    see

    SectionPlane for more information on the section planes.

    see

    CrossSectioning for more information on the highlight color and line width.

    Parameters

    Returns Promise<undefined | IUpdateCrossSectioningResult>