SolidCode / SolidPython

A python frontend for solid modelling that compiles to OpenSCAD
1.11k stars 173 forks source link

hole function does not work without new var #81

Open hstarmans opened 7 years ago

hstarmans commented 7 years ago

The hole function can give errors if you reuse the same variable.

var = RESULT OF MANY OPERATIONS
var -= hole()(cube([2,2,2]))

The above might not work all the time. In my case, the operations comprises a union and a rotation and intersection. The following fixes the issue.

var = RESULT OF MANY OPERATIONS
newvar = var - hole()(cube([2,2,2]))