Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

Files

Latest commit

Nov 25, 2018
22aecf5 · Nov 25, 2018

History

History

x3d-serializer

@jscad/x3d-serializer

x3d serializer for the jscad project (from CSG)

npm version Build Status

Overview

This serializer outputs a 'blobable' array of data (from a CSG object) ie an array that can either be passed directly to a Blob (new Blob(blobable)) or converted to a Node.js buffer.

Table of Contents

Installation

npm install @jscad/x3d-serializer

Usage

const x3dSerializer = require('@jscad/x3d-serializer')

const rawData = x3dSerializer.serialize(CSGObject)

//in browser (with browserify etc)
const blob = new Blob(rawData)

Contribute

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.

License

The MIT License (MIT) (unless specified otherwise)