From 0c650783315066f3e1e6af7967a95c4ee8e5200e Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Sun, 31 May 2026 13:00:12 +0200 Subject: Place two assemblies at the same time It's drawing the box correctly, but some of the constraints seem wonky. I don't think this is correct, but it is sort of working. --- inc/cad/construction.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'inc/cad') diff --git a/inc/cad/construction.h b/inc/cad/construction.h index 71add62..ea784cf 100644 --- a/inc/cad/construction.h +++ b/inc/cad/construction.h @@ -21,6 +21,11 @@ enum operation { // Handle assemblies CMD_IMPORT_POINT_LINE, + CMD_IMPORT_LINE_LINE, + + // Measure elements + CMD_MEASURE_POINT_LINE_DISTANCE, + CMD_MEASURE_LINE_LINE_ANGLE, }; struct point { @@ -87,6 +92,7 @@ struct drawing { struct element* insert_cmd(struct drawing *drawing, struct command cmd); void place_points(struct drawing *drawing, double inputs[]); +void dump_program(struct drawing *drawing, double inputs[]); void free_drawing(struct drawing *drawing); bool circle_line_intersect(struct circle circle, struct line line, uint8_t root, struct point *point); -- cgit v1.2.3