Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/captainwz/svg-3d-builder

an elaborate tool to create 3d model with svg
https://github.com/captainwz/svg-3d-builder

3d 3d-model svg

Last synced: about 1 month ago
JSON representation

an elaborate tool to create 3d model with svg

Awesome Lists containing this project

README

        

# SVG 3D Builder

[![npm version](https://img.shields.io/npm/v/svg-3d-builder.svg?style=flat-square)](https://www.npmjs.com/package/svg-3d-builder)





This framework aims at creating 3d models with **SVG** and to provide a concise API. It is purely developed with concepts of two-dimensions.
One of its essential implementations is **Bezier** in both curve and surface.
It is one thing to describe them with mathematic equations, but another thing to illustrate them with computer graphics.

See [online exhibition](https://libcafe.com/3d/index.html) developed by the framework and its [source code](https://github.com/captainwz/svg-3d-builder/tree/master/demo/exhibition).

## Start
You can either start it in [traditional way](https://github.com/captainwz/svg-3d-builder/blob/master/dist/svg-3d-builder.min.js)
```html

```
Or embark your development with `ES6`
```shell
npm install --save svg-3d-builder
```
```javascript
import Builder from 'svg-3d-builder';
```
Make sure there is an svg element described in your document
```html






```
And see your simplest work by adding these codes
```javascript
Builder
.select('#graph')
.drawLine('M 0 0 0 l 100 0 0')
.action();
```

**Of course you can see [code examples](https://github.com/captainwz/svg-3d-builder/tree/master/code_examples.md) before building sophisticated works by yourself.**

## API
You also need to look up the [API document](https://github.com/captainwz/svg-3d-builder/tree/master/api.md).

## Lisence
Apache

## Other
[postscript](https://libcafe.com/2018/08/25/3d-builder/)