Template:Jscad: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
{{jscad|title=OpenJSCAD example|code=function main() {
{{jscad|title=OpenJSCAD example|code=function main() {
     return CSG.cube();
     return CSG.cube();
}  
}
}}
</pre>
</pre>
= Example =
= Example =

Revision as of 13:47, 11 June 2019

Usage

{{jscad|title=OpenJSCAD example|code=function main() {
    return CSG.cube();
}
}}

Example

OpenJSCAD example

Playground

You can try out modifications of the source code right here.

Source code

function main()
{
 function main() {
    return CSG.cube();
}