writeGeometryElement(node, geometry, objectStack) {
    const context = objectStack[objectStack.length - 1];
    objectStack[objectStack.length - 1] = Object.assign(
      {multiCurve: true, multiSurface: true},
      context,
    );
    super.writeGeometryElement(node, geometry, objectStack);
  }
@param {Node} node Node.
@param {import("../geom/Geometry.js").default|import("../extent.js").Extent} geometry Geometry.
@param {Array<*>} objectStack Node stack.
@override