Supports
Support generation via Lua generates only the support itself as a mesh. It requires a support script generated and exported with Netfabb to the file system. Netfabb support scripts are XML-like files with the filetype suffix "support". This method expects the script by filename, not as a string of XML content. Variable resolution for paths like %APPDATA%\netfabb\script.support is not directly supported but is available through the application
method getenvironmentvariable()
.
To support a mesh on the platform, attach the generated support mesh to it with the traymesh
method assignsupport()
.
Methods
Name | Syntax | Description |
---|---|---|
createsupport | support = mesh:createsupport(xmlfilename:String) | Generates support mesh based on instructions in the support script. Relative paths are resolved against the Netfabb installation folder by default or whichever work folder the Netfabb executable was specified to start in. |
Example
mesh = system:loadstl('file.stl')
support = mesh:createsupport('support.support')
support:savetostl('support.stl')