I have a simple OpenSCAD function that generates a nested list of hole
diameters for a bracket:
function gen_holes(lst,d) = [for(p=lst) [for(i=[1:p]) d]];
and in OpenSCAD the following call:
holes = gen_holes([4,3],25.4)
produces:
holes = [[25.4, 25.4, 25.4, 25.4], [25.4, 25.4, 25.4]]
When I call this from PythonSCAD as:
CTB = osuse("Cable_Trace_Bracket_mm.scad")
holes = CTB.gen_holes([4,3],25.4)
it core dumps PythonSCAD without writing an error message.
Can anyone see an obvious problem here, or is it an issue reporting time?
EBo --
I have a simple OpenSCAD function that generates a nested list of hole
diameters for a bracket:
function gen_holes(lst,d) = [for(p=lst) [for(i=[1:p]) d]];
and in OpenSCAD the following call:
holes = gen_holes([4,3],25.4)
produces:
holes = [[25.4, 25.4, 25.4, 25.4], [25.4, 25.4, 25.4]]
When I call this from PythonSCAD as:
CTB = osuse("Cable_Trace_Bracket_mm.scad")
holes = CTB.gen_holes([4,3],25.4)
it core dumps PythonSCAD without writing an error message.
Can anyone see an obvious problem here, or is it an issue reporting time?
EBo --