Debian Codegraph @

lib/ortho/partition.h

raw
1 /**
2 * @file
3 * @brief function @ref partition, subroutine of @ref mkMaze
4 */
5
6 /*************************************************************************
7 * Copyright (c) 2011 AT&T Intellectual Property
8 * All rights reserved. This program and the accompanying materials
9 * are made available under the terms of the Eclipse Public License v1.0
10 * which accompanies this distribution, and is available at
11 * https://www.eclipse.org/legal/epl-v10.html
12 *
13 * Contributors: Details at https://graphviz.org
14 *************************************************************************/
15
16 #pragma once
17
18 #include <ortho/maze.h>
19 #include <stddef.h>
20
21 /**
22 * @brief partitions space around cells (nodes) into rectangular tiles
23 * @param[in] cells rectangular borders of user's input graph's nodes
24 * @param[in] bb range of the space to partition
25 * @param[out] nrects number of tiles
26 * @returns array of the tiles
27 */
28
29 boxf *partition(cell *cells, size_t ncells, size_t *nrects, boxf bb);