Print a Protection for a Cylinder Glass Bottle (Toothpaste)
FleetingUsing cadquery
Let’s first construct the shape of the bottle.
def bottle(w, height, radius):
return w.cylinder(height=height, radius=radius).faces('-Z').fillet(3)
Then, let’s create the hull of its enclosure, which is the same cylinder, but with adding some thickness
def hull(w, height, radius, thickness):
return w.cylinder(height=height, radius=(radius + thickness)).fillet(3)
Then lets make in the hull a hole with the shape of the bottle, translating it to make room for some thickness in the bottom.
def enclosure(w, height, radius, thickness, bottom_thickness):
return hull(w, height, radius, thickness).cut(bottle(w, height, radius).translate((0, 0, bottom_thickness)))
Now, the bottle that I am dealing with has the following characteristics
- radius
- 24mm
- height
- 84mm
Also, I would like walls big enough, but not too big.
- thickness
- 1mm
- bottom_thickness
- 1mm
Therefore, the final model is.
![](https://konubinix.eu/ipfs/bafybeid2si73i42gar2qxx54gqkti2hllouwoiwqpdpavm737f24kqkhlq?filename=a.png)
The seam is very visible, but the result is anyway very good.
After a fall, the protection broke, but the bottle is still intact. I think I might want to print a thicker hull, with few infill, to protect the bottle even more.
![](https://konubinix.eu/ipfs/bafybeidbwpnmo53lozgr2iwgvbdov56c2gu7dkxawfouqdltgegnalqwo4?filename=a.png)
Also, let’s add a small hole at the bottom to make it easier to install.
![](https://konubinix.eu/ipfs/bafybeibvsmqa4yi6ey4f3ay2ildjg2g5tv7wsst6im6t2iem4wnzko2nuq?filename=a.png)
![](https://konubinix.eu/ipfs/bafybeiaeui2is6h5f6idswxwkx3fdoaejhaiefjarxrcsamewldue2pucm?filename=a.png)
![](https://konubinix.eu/ipfs/bafybeicn3anxdmuirvur5dnb4bvedacarskqrkt2r36g3klk4qclstopq4?filename=a.png)
![](https://konubinix.eu/ipfs/bafybeiabtoj6ltwefyji7kmevncu6cudwyn2lti7zr2yqpfknxhghsjb5q?filename=a.png)
After another fall, the new protection broke, so I printed yet another one, with PLA PREMIUM WANHAO BOIS WOOD 500G/1KG.
![](https://konubinix.eu/ipfs/bafybeigo3bk2fqyitxtwtdxgswmttyhbxb2pmjjyju6zmtdul5oldl5xzu?filename=a.png)
It looks much stronger, I don’t know if it is because it is the wood filament or not. Also, it was very hard to make the bottle fit in it. Maybe next time I will try making it half a millimeter bigger.
Notes linking here
- pipe sleeve to adapt a pool pump tank (blog)
- strengthen it again (blog)