summaryrefslogtreecommitdiff
path: root/inc/cad/construction.h
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2026-05-31 13:00:12 +0200
committerJesper Jensen <jesper@jnsn.dev>2026-05-31 13:00:12 +0200
commit0c650783315066f3e1e6af7967a95c4ee8e5200e (patch)
tree166bc274e8211ace6155c7f593e72788afefcff4 /inc/cad/construction.h
parent099690b0b50b3df68562130874887ca2ce08460e (diff)
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.
Diffstat (limited to 'inc/cad/construction.h')
-rw-r--r--inc/cad/construction.h6
1 files changed, 6 insertions, 0 deletions
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);