Closed hrgdavor closed 10 months ago
file imput supprot for parameters, that reads file the same ways as require for different types of geometry.
example script:
import * as jscad from '@jscad/modeling' export const main =({// @jscad-params mesh,// {type:"file"} check=false, })=>{ return mesh ? mesh : jscad.primitives.sphere() }
no file chosen, the sample script returns a sphere
stl file, the sample script returns the geometry form the stl
file imput supprot for parameters, that reads file the same ways as require for different types of geometry.
example script:
no file chosen, the sample script returns a sphere
stl file, the sample script returns the geometry form the stl