DXF serializer for the JSCAD project (from CSG)
This serializer outputs a 'blobable' array of data (from one or more CSG library objects).
The array of data can either be used to create a Blob (new Blob(blobable)
), or converted to a Node.js buffer.
The serialization of the following objects are possible.
- CAG serialization to DXF LWPOLYLINE or POLYLINE
- CSG serialization to DXF 3DFACE(s)
- CSG.Path2D serialization to DXF LWPOLYLINE or POLYINE
npm install @jscad/dxf-serializer
const dxfSerializer = require('@jscad/dxf-serializer')
const rawData = dxfSerializer.serialize(CSGObject)
//in browser (with browserify etc)
const blob = new Blob(rawData)
For questions about the API, please contact the User Group
PRs accepted.
Small Note: If editing this README, please conform to the standard-readme specification.
The MIT License (MIT) (unless specified otherwise)