import { addTo } from './addTo';
import { getGroup } from './getGroup';
import { getPrefab } from './getPrefab';
export const getSlice3 = (opt = {}) => {
    const val = {
        topScale: 0.33,
        topPrefab: 'cube_01',
        bottomScale: 0.33,
        bottomPrefab: 'cube_01',
        material: 'palette_01_white',
        p: [0, 0, 0],
        r: [0, 0, 0],
        s: [1, 1, 1],
        ...opt,
    };
    const wrapper = getGroup({
        p: val.p,
        s: val.s,
        r: val.r,
    });
    if (val.topScale) {
        addTo(wrapper, getPrefab({
            id: val.topPrefab,
            p: [0, 2 - val.topScale * 2, 0],
            s: [1, val.topScale, 1],
            material: val.material,
        }));
    }
    if (val.bottomScale) {
        addTo(wrapper, getPrefab({
            id: val.bottomPrefab,
            p: [0, 0, 0],
            s: [1, val.bottomScale, 1],
            material: val.material,
        }));
    }
    return wrapper;
};
//# sourceMappingURL=getSlice3.js.map