import { BlueprintIGXCBuilder, } from "./BlueprintIGXCBuilder";
export const createSceneFromBlueprint = ({ model, ...builderParams }) => {
    const builder = new BlueprintIGXCBuilder(builderParams);
    const corners = model.floorplan.getCorners();
    corners.forEach(corner => builder.addCorner(corner));
    const walls = model.floorplan.getWalls();
    walls.forEach(wall => builder.addWall(wall.getStart().id, wall.getEnd().id));
    const rooms = model.floorplan.getRooms();
    rooms.forEach(room => builder.addRoom(room.corners.map(corner => corner.id)));
    return builder.build();
};
