How to use the @jscad/io.dxfDeSerializer.deserialize function in @jscad/io

To help you get started, we’ve selected a few @jscad/io examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jscad / OpenJSCAD.org / packages / core / io / registerExtensions.js View on Github external
_require.extensions['.dxf'] = (module, filename) => {
    const content = fs.readFileSync(filename, 'utf8')
    const parsed = deserializer.deserialize(content, filename, { output: 'geometry' })
    module.exports = parsed
  }
}
github jscad / OpenJSCAD.org / packages / core / io / registerExtensions.js View on Github external
_require.extensions['.stl'] = (module, filename) => {
    const content = fs.readFileSync(filename, 'utf8')
    const parsed = deserializer.deserialize(content, filename, { output: 'geometry' })
    module.exports = parsed
  }
}
github jscad / OpenJSCAD.org / packages / core / io / registerExtensions.js View on Github external
_require.extensions['.svg'] = (module, filename) => {
    const content = fs.readFileSync(filename, 'utf8')
    const parsed = deserializer.deserialize(content, filename, { output: 'geometry' })
    module.exports = parsed
  }
}
github jscad / OpenJSCAD.org / packages / core / io / registerExtensions.js View on Github external
_require.extensions['.amf'] = (module, filename) => {
    const content = fs.readFileSync(filename, 'utf8')
    const parsed = deserializer.deserialize(content, filename, { output: 'geometry' })
    module.exports = parsed
  }
}