Soap dispenser - Extended
door Delan_
19
Downloads
32
Likes
0
Makes
This is a remake of the Soap dispenser by advancedvb. The pump assembly I have is too long for this model, so I extended its height by 9.5mm.
The extension is done by a script that just increases the Z height of vertexes higher than 70mm (arbitrary). Prior to execute the script on a .STL, you must save it as an ASCII STL instead of a binary STL (example: open with FreeCAD > Export > as .ast, then rename the .ast file to .stl).
The script is provided to tune either the increase (I'm limited to 125mm by my printer) or the height at which the increase occurs (if you want a longer neck or a shallower sponge holder for example).
Script is copy-pasted below (excuse my "dirty-but-works" coding ;) ):
# -*- coding: utf-8 -*-
STL_input_path = r"ZeepPomp_01.stl"
STL_out_path = r"ZeepPomp_01_extended.stl"
towrite = []
threshold = 70.0 # [mm]
Z_increase = 9.5 # [mm]
STL_input_file = open(STL_input_path)
for line in STL_input_file:
if line.find("vertex") < 0: # non-v
The extension is done by a script that just increases the Z height of vertexes higher than 70mm (arbitrary). Prior to execute the script on a .STL, you must save it as an ASCII STL instead of a binary STL (example: open with FreeCAD > Export > as .ast, then rename the .ast file to .stl).
The script is provided to tune either the increase (I'm limited to 125mm by my printer) or the height at which the increase occurs (if you want a longer neck or a shallower sponge holder for example).
Script is copy-pasted below (excuse my "dirty-but-works" coding ;) ):
# -*- coding: utf-8 -*-
STL_input_path = r"ZeepPomp_01.stl"
STL_out_path = r"ZeepPomp_01_extended.stl"
towrite = []
threshold = 70.0 # [mm]
Z_increase = 9.5 # [mm]
STL_input_file = open(STL_input_path)
for line in STL_input_file:
if line.find("vertex") < 0: # non-v
Heb je dit model geprint? Inloggen en deel je make!
Log in om een reactie achter te laten
InloggenNog geen reacties – wees de eerste!