Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constrain arm thickness #9

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
215 changes: 109 additions & 106 deletions OBJ-output-of-samples/constrained-y.obj
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,35 @@ v 0 -4 0
v 0 0 0
v 0 -4 -1
v 0 0 -1
v 5.3396645 -4 -1
v 5.3396645 0 -1
v 8.19596 -4 -3
v 8.19596 0 -3
v 3.0950184 -4 -1
v 3.0950184 0 -1
v 4.5231667 -0 -2
v 5.951315 0 -3
v 5.951315 -4 -3
v 9.5 -4 -3
v 9.5 0 -3
v 9.5 -4 -2.5
v 9.5 0 -2.5
v 8.35361 -4 -2.5
v 8.35361 0 -2.5
v 5.6758323 -4 -0.625
v 6.568424 -4 -1.25
v 6.568424 -0 -1.25
v 5.6758323 -0 -0.625
v 4.78324 0 0
v 4.78324 -4 0
v 6.3916197 -4 0.75
v 6.3916197 -0 0.75
v 8 0 1.5
v 8 -4 1.5
v 6.108964 -4 -2.5
v 6.108964 0 -2.5
v 3.4311862 -4 -0.625
v 4.3237786 -4 -1.25
v 4.3237786 -0 -1.25
v 3.4311862 -0 -0.625
v 2.538594 0 0
v 2.538594 -4 0
v 3.342784 -4 0.375
v 4.146974 -4 0.75
v 3.342784 -0 0.375
v 4.146974 -0 0.75
v 5.7553544 0 1.5
v 5.7553544 -4 1.5
v 9.5 -4 1.5
v 9.5 0 1.5
v 9.5 -4 2
v 7.572253 -4 2
v 9.5 0 2
v 5.644507 0 2
v 5.644507 -4 2
v 5.644507 0 2
v 3.5 -4 1
v 3.5 0 1
v 0 -4 1
Expand All @@ -37,48 +39,50 @@ vt 0.0005 -0.002
vt 0.0005 0.002
vt -0.0005 -0.002
vt -0.0005 0.002
vt -0.0026698322 0.002
vt -0.0026698322 -0.002
vt 0.0026698322 0.002
vt 0.0026698322 -0.002
vt -0.0015475092 0.002
vt -0.0015475092 -0.002
vt 0.0015475092 0.002
vt 0.0015475092 -0.002
vt 0.000000000000000001951564 -0.002
vt 0.0017434468 -0.002
vt 0.0017434468 0.002
vt -0.0017434468 0.002
vt -0.0017434468 -0.002
vt 0.0017434468 0.002
vt 0.0017434468 -0.002
vt -0.00065201987 0.002
vt -0.00065201987 -0.002
vt 0.00065201987 0.002
vt 0.00065201987 -0.002
vt -0.0017743427 0.002
vt -0.0017743427 -0.002
vt 0.0017743427 0.002
vt 0.0017743427 -0.002
vt -0.00025 0.002
vt 0.00025 -0.002
vt 0.00025 0.002
vt 0.00057319517 -0.002
vt 0.00057319517 0.002
vt -0.00057319517 -0.002
vt -0.00057319517 0.002
vt 0.001695518 -0.002
vt 0.001695518 0.002
vt -0.001695518 -0.002
vt -0.001695518 0.002
vt -0.0010896543 -0.002
vt 0.0000000000000000006505213 -0.002
vt 0.0000000000000000006505213 0.002
vt 0.0000000000000000018431437 -0.002
vt 0.0000000000000000018431437 0.002
vt 0.0021793086 -0.002
vt 0.0021793086 0.002
vt -0.0010896543 0.002
vt -0.0021793086 0.002
vt -0.0021793086 -0.002
vt 0.00000000000000000081315163 0.002
vt -0.0008873256 0.002
vt -0.0017746512 0.002
vt -0.0017746512 -0.002
vt 0.00000000000000000081315163 -0.002
vt 0.0000000000000000017889336 0.002
vt -0.0008873256 -0.002
vt 0.0000000000000000017889336 -0.002
vt 0.0017746512 -0.002
vt 0.0017746512 0.002
vt -0.00075 0.002
vt -0.00075 -0.002
vt 0.00075 0.002
vt 0.00075 -0.002
vt 0 -0.002
vt -0.0018723229 0.002
vt -0.0018723229 -0.002
vt 0.0018723229 0.002
vt 0.0018723229 -0.002
vt 0.0019277466 -0.002
vt 0.0019277466 0.002
vt -0.0019277466 0.002
vt -0.0019277466 -0.002
vt -0.0019277466 0.002
vt 0.0011831007 -0.002
vt 0.0011831007 0.002
vt -0.0011831007 -0.002
Expand All @@ -87,22 +91,21 @@ vt 0.00175 -0.002
vt 0.00175 0.002
vt -0.00175 -0.002
vt -0.00175 0.002
vt 0.0056758323 -0.000625
vt 0.0065684244 -0.00125
vt 0.0053396644 -0.001
vt 0.00639162 0.00075
vt 0.003342784 0.000375
vt 0.002538594 0
vt 0.0035 0.001
vt 0.0045231665 -0.002
vt 0.0030950184 -0.001
vt 0.0043237787 -0.00125
vt 0.0034311863 -0.000625
vt 0.004146974 0.00075
vt 0.005644507 0.002
vt 0.008 0.0015
vt 0.0047832397 0
vt 0 -0.001
vt 0.0035 0.001
vt 0.00835361 -0.0025
vt 0.006108964 -0.0025
vt 0 0
vt 0.0095 0.002
vt 0 0.001
vt 0.0075722532 0.002
vt 0.0095 0.0015
vt 0.00819596 -0.003
vt 0.005755354 0.0015
vt 0.0059513147 -0.003
vn -1 -0 0
vn 0 -0 -1
vn -0.57357645 -0 -0.81915206
Expand All @@ -118,55 +121,55 @@ f 1/1/1 2/2/1 3/3/1
f 3/3/1 2/2/1 4/4/1
f 3/5/2 4/6/2 5/7/2
f 5/7/2 4/6/2 6/8/2
f 5/9/3 6/10/3 7/11/3
f 7/11/3 6/10/3 8/12/3
f 7/13/2 8/14/2 9/15/2
f 9/15/2 8/14/2 10/16/2
f 9/17/4 10/18/4 11/19/4
f 11/20/5 12/21/5 13/22/5
f 13/22/5 12/21/5 14/23/5
f 15/24/6 16/25/6 17/26/6
f 16/25/6 13/27/6 14/28/6
f 18/29/6 19/30/6 20/31/6
f 15/24/6 18/29/6 20/31/6
f 16/25/6 14/28/6 17/26/6
f 18/29/6 15/24/6 17/26/6
f 21/32/7 20/33/7 19/34/7
f 22/35/7 23/36/7 24/37/7
f 21/32/7 19/34/7 22/35/7
f 24/37/7 21/32/7 22/35/7
f 24/38/2 23/39/2 25/40/2
f 25/40/2 23/39/2 26/41/2
f 25/17/4 26/18/4 27/19/4
f 28/42/5 27/43/5 29/44/5
f 28/42/5 29/44/5 30/45/5
f 31/46/5 28/42/5 30/45/5
f 31/47/8 30/48/8 32/49/8
f 32/49/8 30/48/8 33/50/8
f 32/51/5 33/52/5 34/53/5
f 34/53/5 33/52/5 35/54/5
f 34/1/1 35/2/1 1/3/1
f 1/3/1 35/2/1 2/4/1
f 18/55/9 17/56/9 6/57/9
f 22/58/9 30/59/9 23/60/9
f 19/61/9 30/59/9 22/58/9
f 4/62/9 19/61/9 6/57/9
f 4/62/9 33/63/9 19/61/9
f 14/64/9 6/57/9 17/56/9
f 4/62/9 2/65/9 33/63/9
f 19/61/9 33/63/9 30/59/9
f 29/66/9 23/60/9 30/59/9
f 6/57/9 19/61/9 18/55/9
f 33/63/9 2/65/9 35/67/9
f 15/55/10 5/57/10 16/56/10
f 28/68/10 24/60/10 25/69/10
f 28/68/10 31/59/10 21/58/10
f 21/58/10 24/60/10 28/68/10
f 20/61/10 21/58/10 31/59/10
f 34/67/10 1/65/10 32/63/10
f 32/63/10 20/61/10 31/59/10
f 32/63/10 1/65/10 3/62/10
f 5/57/10 15/55/10 20/61/10
f 16/56/10 5/57/10 7/70/10
f 20/61/10 3/62/10 5/57/10
f 3/62/10 20/61/10 32/63/10
f 7/9/3 8/10/3 9/11/3
f 5/12/3 6/13/3 7/9/3
f 9/11/3 5/12/3 7/9/3
f 9/14/2 8/15/2 10/16/2
f 10/16/2 8/15/2 11/17/2
f 10/18/4 11/19/4 12/20/4
f 12/21/5 13/22/5 14/23/5
f 14/23/5 13/22/5 15/24/5
f 16/25/6 17/26/6 18/27/6
f 17/26/6 14/28/6 15/29/6
f 19/30/6 20/31/6 21/32/6
f 16/25/6 19/30/6 21/32/6
f 17/26/6 15/29/6 18/27/6
f 19/30/6 16/25/6 18/27/6
f 22/33/7 21/34/7 20/35/7
f 23/36/7 22/33/7 24/37/7
f 24/37/7 25/38/7 23/36/7
f 25/38/7 26/39/7 27/40/7
f 22/33/7 20/35/7 24/37/7
f 27/40/7 23/36/7 25/38/7
f 27/41/2 26/42/2 28/43/2
f 28/43/2 26/42/2 29/44/2
f 28/18/4 29/19/4 30/20/4
f 30/45/5 31/46/5 32/47/5
f 32/47/5 31/46/5 33/48/5
f 32/49/8 33/50/8 34/51/8
f 34/51/8 33/50/8 35/52/8
f 34/53/5 35/54/5 36/55/5
f 36/55/5 35/54/5 37/56/5
f 36/1/1 37/2/1 1/3/1
f 1/3/1 37/2/1 2/4/1
f 24/57/9 20/58/9 35/59/9
f 7/60/9 6/61/9 18/62/9
f 19/63/9 18/62/9 6/61/9
f 24/57/9 35/59/9 25/64/9
f 25/64/9 35/59/9 33/65/9
f 4/66/9 20/58/9 6/61/9
f 18/62/9 15/67/9 7/60/9
f 4/66/9 2/68/9 20/58/9
f 20/58/9 19/63/9 6/61/9
f 20/58/9 2/68/9 37/69/9
f 35/59/9 20/58/9 37/69/9
f 22/57/10 34/59/10 21/58/10
f 23/64/10 34/59/10 22/57/10
f 16/63/10 5/61/10 17/62/10
f 23/64/10 27/70/10 34/59/10
f 36/69/10 21/58/10 34/59/10
f 36/69/10 1/68/10 21/58/10
f 5/61/10 16/63/10 21/58/10
f 17/62/10 5/61/10 9/71/10
f 21/58/10 3/66/10 5/61/10
f 3/66/10 21/58/10 1/68/10
8 changes: 6 additions & 2 deletions constrained-y.kcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ const part001 = startSketchOn('-XZ')
}, %)
|> xLineTo({ to: totalLen, tag: 'seg03' }, %)
|> yLine({ length: -armThick, tag: 'seg01' }, %)
|> xLine(-1.5, %)
|> angledLineThatIntersects({
angle: _180,
offset: -armThick,
intersectTag: 'seg04'
}, %)
|> angledLineToY([segAng('seg04', %) + 180, _0], %)
|> angledLineToY({
angle: -bottomAng,
Expand All @@ -34,5 +38,5 @@ const part001 = startSketchOn('-XZ')
}, %)
|> angledLineToY([segAng('seg02', %) + 180, -baseHeight], %)
|> xLineTo(_0, %)
|> close(%)
|> close(%)
|> extrude(4, %)
Binary file modified screenshots-of-samples/constrained-y.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.