summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2026-03-21 23:23:12 +0100
committerJesper Jensen <jesper@jnsn.dev>2026-03-21 23:23:12 +0100
commitd8a6d8a8b046dcb73f1c1daf0e013a703517da68 (patch)
tree862055f9996c4d09c54a0a261a12449329db4eaf /examples
parentcd1df8f7cb64539842eaad425df5fa7ec9c87fb5 (diff)
WIP: Add support for multiple assemblies
Diffstat (limited to 'examples')
-rw-r--r--examples/triangle_tip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/triangle_tip.c b/examples/triangle_tip.c
index 408c864..6b05b10 100644
--- a/examples/triangle_tip.c
+++ b/examples/triangle_tip.c
@@ -41,7 +41,7 @@ int main(int argc, char *argv[]) {
add_constraint(&constraints, (struct constraint[]){
// Make a triangle
PP_DISTANCE(&p1, &p2, 30),
- PP_DISTANCE(&p1, &p3, 30),
+ PP_DISTANCE(&p3, &p1, 30),
PP_DISTANCE(&p2, &p3, 30),
POINT_ON_LINE(&p1, &t1base),
@@ -50,8 +50,9 @@ int main(int argc, char *argv[]) {
// With another triangle sharing a point
PP_DISTANCE(&p4, &p5, 30),
PP_DISTANCE(&p3, &p4, 30),
+ PP_DISTANCE(&p3, &p5, 30),
- LL_ANGLE(&t2side, &t2base, DEG(120)),
+ // LL_ANGLE(&t2side, &t2base, DEG(120)),
POINT_ON_LINE(&p3, &t2side),
POINT_ON_LINE(&p4, &t2side),