diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2026-03-28 09:47:34 +0100 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2026-03-28 09:47:34 +0100 |
| commit | ebb61f7bec9a6affa2be7b0eeb94bb737b9edcb2 (patch) | |
| tree | 570251bc426ccb4ee6cc88b06754ef14c7c834fb /examples/box_and_lines.c | |
| parent | d8a6d8a8b046dcb73f1c1daf0e013a703517da68 (diff) | |
Add support for post solve assembling
Diffstat (limited to 'examples/box_and_lines.c')
| -rw-r--r-- | examples/box_and_lines.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/box_and_lines.c b/examples/box_and_lines.c index 7026268..d90f208 100644 --- a/examples/box_and_lines.c +++ b/examples/box_and_lines.c @@ -135,7 +135,9 @@ void a_box(struct box *box, struct topology *topo, struct constraints *constr) { void draw_from_constraints(struct constraints *c, struct topology *t, struct canvas *cv) { struct drawing drawing = {}; - bool rc = solve_constraints(c, &drawing); + struct subassembly assemblies[16] = {}; + size_t assemblies_num; + bool rc = solve_constraints(c, &drawing, assemblies, &assemblies_num); assert(rc); // Copy over all the parameter values to a new array |
