file
A file.
Signatures
- file( string filename )
Details
Representation of a local file of one of the types:
- 3d model (stl, 3mf, ply)
- image (png, jpg)
Example
file f( "myfile.stl" )
echo( f.exists() )
Output
false
Ab file variable can be an open parameter. In this case, a file upload is used to set the parameter value for configuration:
Example
open file f
{
name = "Mesh upload"
descr = "The user shall provide a mesh here."
value = "default.stl"
}
make mesh( f )
Casts To
Members
- bool exists()
-
Returns 'true' if the file exists locally, 'false' if it does not. This can be used to determine whether an open file was uploaded by the user.
Parameters
- filename
-
Name of the local file.