Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
shelf-inserts
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
make4all
createtivity
shelf-inserts
Commits
ef190dbd
Unverified
Commit
ef190dbd
authored
7 months ago
by
Jennifer Mankoff
Browse files
Options
Downloads
Patches
Plain Diff
updated working version!
parent
d84402fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
insert.py
+4
-7
4 additions, 7 deletions
insert.py
with
4 additions
and
7 deletions
insert.py
+
4
−
7
View file @
ef190dbd
...
...
@@ -123,7 +123,7 @@ class ShelfInsert(Boxes):
def
ySlots
(
self
):
posy
=
-
0.5
*
self
.
thickness
for
y
in
self
.
sy
[:
-
1
]:
for
y
in
self
.
sy
[:
-
1
:
]:
posy
+=
y
+
self
.
thickness
+
self
.
Overhang_left_overhang
posx
=
0
for
x
in
reversed
(
self
.
sx
):
...
...
@@ -162,12 +162,9 @@ class ShelfInsert(Boxes):
# floor
self
.
rectangularWall
(
x
,
y
,
"
eeee
"
,
callback
=
[
self
.
xSlots
,
self
.
ySlots
],
move
=
"
up
"
,
label
=
"
top
"
)
# Inner walls
be
=
"
f
"
if
b
!=
"
e
"
else
"
e
"
######
for
i
in
range
(
len
(
self
.
sy
)
-
1
):
...
...
@@ -175,14 +172,14 @@ class ShelfInsert(Boxes):
self
.
rectangularWall
(
x
,
h
,
e
,
move
=
"
up
"
,
label
=
"
x support
"
)
for
i
in
range
(
len
(
self
.
sx
)
-
1
):
e
=
[
edges
.
SlottedEdge
(
self
,
self
.
sy
,
be
,
slots
=
0.5
*
h
),
"
f
"
,
"
e
"
,
"
f
"
]
e
=
[
edges
.
SlottedEdge
(
self
,
self
.
sy
,
"
e
"
,
slots
=
0.5
*
h
),
"
f
"
,
"
f
"
,
"
f
"
]
self
.
rectangularWall
(
y
,
h
,
e
,
move
=
"
up
"
,
label
=
"
y support
"
)
b
=
ShelfInsert
()
b
.
parseArgs
([
'
--sx=140*
3
'
,
'
--sy=
14
0*
2
'
,
'
--h=26
'
,
'
--Overhang_front_overhang=50
'
,
'
--reference=0
'
,
'
--debug=0
'
])
b
.
parseArgs
([
'
--sx=140*
2
'
,
'
--sy=
9
0*
3
'
,
'
--h=26
'
,
'
--Overhang_front_overhang=50
'
,
'
--reference=0
'
,
'
--debug=0
'
])
b
.
open
()
b
.
render
()
data
=
b
.
close
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment