import '../../../assert/js/assert.js';
import '../../../globals.js';
import { EdgedFace, PolygonalFace } from '../imports.js';
export const serializeClippableFace = (clippableFace) => {
    assert && assert(clippableFace instanceof PolygonalFace || clippableFace instanceof EdgedFace);
    return {
        type: clippableFace instanceof PolygonalFace ? 'PolygonalFace' : 'EdgedFace',
        face: clippableFace.serialize()
    };
};
export const deserializeClippableFace = (serialized) => {
    return serialized.type === 'PolygonalFace' ? PolygonalFace.deserialize(serialized.face) : EdgedFace.deserialize(serialized.face);
};
//# sourceMappingURL=ClippableFace.js.map