ReadonlybooleansReadonlyexpansionsReadonlyextrusionsReadonlyhullsReadonlypathReadonlypolygonReadonlyshapesReadonlytextReadonlycolorsTurns a solid into a list of triangles, each given as three points, with the solid's own transform already applied.
A flat 2D shape is given a tiny thickness first so it has faces at all. An entity with no polygons gives an empty list.
The triangles as lists of three points
Writes a solid as a binary STL file, the common format for 3D printing, and downloads it in
the browser as fileName plus .stl.
The solid and the file name
The STL file as a blob; the asynchronous API starts the download instead and returns nothing
Writes several solids into one binary STL file and downloads it in the browser as fileName
plus .stl.
The solids and the file name
The STL file as a blob; the asynchronous API starts the download instead and returns nothing
Writes a solid, a 2D shape, a path or a list of them as a DXF drawing file and downloads it
in the browser as fileName plus .dxf.
options is passed to the DXF writer as it is and can stay out.
The geometry, the file name and the optional writer options
The DXF file as a blob; the asynchronous API starts the download instead and returns nothing
Writes a solid, a 2D shape, a path or a list of them as a 3MF file, a modern 3D printing
format, and downloads it in the browser as fileName plus .3mf.
options is passed to the 3MF writer as it is and can stay out.
The geometry, the file name and the optional writer options
The 3MF file as a blob; the asynchronous API starts the download instead and returns nothing
Moves, rotates or scales several solids with the same transformation, giving new solids in the same order.
transformation is one 4x4 matrix, a list of matrices applied in order, or a list of such
lists; a flat 2D shape or a path throws an error.
The solids and the transformation
The transformed solids, in the same order
Moves, rotates or scales a solid with a transformation, giving a new solid.
transformation is one 4x4 matrix, a list of matrices applied in order, or a list of such
lists; a flat 2D shape or a path throws an error.
The solid and the transformation
The transformed solid
The entry point to the JSCAD kernel, a mesh-based solid modeler with three kinds of geometry: a solid, held as a closed set of polygons; a flat 2D shape, held as a region in the XY plane; and a 2D path, an open or closed polyline in that plane.
shapesandpolygonbuild them,booleans,extrusions,expansionsandhullscombine and grow them,textwrites with them andcolorstints them. Flat shapes live in the XY plane and extrude along Z. The methods on the service itself convert solids to mesh data, move them with matrices and write STL, DXF and 3MF files. Credit to the JSCAD community for the kernel.