jscad / scad-api

DEPRECATED: OpenSCAD like API for JSCAD (See the link below)
https://github.com/jscad/OpenJSCAD.org/tree/V2/packages
MIT License
14 stars 9 forks source link

BUG: hull() fails with TypeError #4

Closed z3dev closed 2 years ago

z3dev commented 7 years ago

From @z3dev on January 4, 2016 3:42

function main() { // BUG: If resolution is changed to 18 then there's an error // "TypeError: this.points[p1] is undefined" var r = 18; var a = CAG.circle({center: [-5,0], radius: 3, resolution: r}); var b = CAG.circle({center: [+5,0], radius: 3, resolution: r}); b = hull(a,b); return b; }

Copied from original issue: Spiritdude/OpenJSCAD.org#114

kaosat-dev commented 7 years ago

Interestingly this version works: (without using the CAG namespace) function main() { var r = 18; var a = circle({ r: 3, $fn: r}); var b = circle({r: 3, $fn: r}); b = hull(a,b); return b; }

z3dev commented 2 years ago

Not relevant anymore.