OpenJSCAD.org
OpenJSCAD.org copied to clipboard
[Feature request] Null 3d object
I want to have a 3d object that have no actual object but able to pass to union() or other boolean function. This is useful for the function that have return value conditionally.
In V1, world I can use unison([]) for this use case. But in V2, it will make a error.
Can we have a null 3d object?
Expected Behavior
union([]) will return empty result.
Actual Behavior
It make error.
ERROR:
Uncaught Error: wrong number of arguments
Steps to Reproduce the Problem
function main () {
return union([
cube(),
union([]),
]);
}
Specifications
- Version: V2
- Platform: linux 64
- Environment: browser
@ikeji Thanks! We will take a look at this.