got nonbinary partitioning working yippie
This commit is contained in:
parent
6b5bcff1a4
commit
330755591b
6 changed files with 170 additions and 57 deletions
26
cursetree/nsparted.h
Normal file
26
cursetree/nsparted.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef CURSETREE_NSPARTED_H
|
||||
#define CURSETREE_NSPARTED_H
|
||||
|
||||
#include "node.h"
|
||||
|
||||
/* Surface Partition Dimensions */
|
||||
struct ct_spdims {
|
||||
// Main Axis & Orthogonal Axis Sizes
|
||||
int axm_size, axo_size;
|
||||
bool fixed;
|
||||
int min, max;
|
||||
};
|
||||
|
||||
/* Node Surface Partitioner */
|
||||
struct ct_nsparted {
|
||||
struct ct_node *const node;
|
||||
struct ct_dims *const dims;
|
||||
|
||||
/* Child Surface Partition Dimensions */
|
||||
struct ct_spdims *const cspdims;
|
||||
};
|
||||
|
||||
struct ct_nsparted *init_nsparted(struct ct_node *const node,
|
||||
struct ct_dims *const dims);
|
||||
|
||||
#endif /* CURSETREE_NSPARTED_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue