summaryrefslogtreecommitdiff
path: root/inc/cad/svg.h
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-11-20 22:31:53 +0100
committerJesper Jensen <jesper@jnsn.dev>2025-11-20 22:31:53 +0100
commitacfa01613f6e7fbeace88a15df61252156d39cf1 (patch)
tree9d81120f36c1cd74dfe5d2691ccf55c8707cd394 /inc/cad/svg.h
parent6e4df49832827e21c6d62f722767664e5cb9d575 (diff)
Separate everything out
Diffstat (limited to 'inc/cad/svg.h')
-rw-r--r--inc/cad/svg.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/inc/cad/svg.h b/inc/cad/svg.h
new file mode 100644
index 0000000..68634b8
--- /dev/null
+++ b/inc/cad/svg.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "cad/solve.h"
+#include "cad/topology.h"
+
+enum LineStyle {
+ LSTYLE_NORMAL,
+ LSTYLE_CONSTRUCTION,
+ LSTYLE_INDICATOR,
+};
+#define TEXT_OFFSET 0.4
+
+void plot_line_between(struct point p1, struct point p2);
+void plot_arc_between_style(struct point c, struct point p1, struct point p2, enum LineStyle style);
+void plot_arc_between(struct point c, struct point p1, struct point p2);
+void plot_text(struct point p, double angle, char* str);
+
+void draw_constraints(struct constraints *constraints);
+void draw_topology(struct topology *topo);