const {features} = await buildingLayer.queryFeatures();
const mesh = features[0].geometry;
const buffer = await mesh.toBinaryGLTF();
downloadBufferAsFile("model.glb", buffer, "model/gltf-binary");
const query = sceneLayer.createQuery();
query.multipatchOption = "xyFootprint";
const { features } = await uploadLayer.queryFeatures(query);
// Use building footprint as mask
const footprint = features[0].geometry as Polygon;
▽ Building origin:
47.365341° N, 8.524240° E
Z: 419.37m / 1,375.88ft