# polygons-to-obj

> Takes polygon and face arrays and returns an OBJ string

Latest version **0.1.6** (published 2015-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install polygons-to-obj
pnpm add polygons-to-obj
yarn add polygons-to-obj
bun add polygons-to-obj
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2015-07-07 |
| First published | 2015-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Author | Robin Hawkes |
| Maintainers | robhawkes |
| Keywords | citygml, 3d, polygons, obj, convert, mapping, gis |

## Links

- npm: https://www.npmjs.com/package/polygons-to-obj
- Repository: https://github.com/polygon-city/polygons-to-obj
- Issues: https://github.com/polygon-city/polygons-to-obj/issues
- npm.io page: https://npm.io/package/polygons-to-obj

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^3.9.3

## Recent versions

- 0.1.6 (latest) — 2015-07-07
- 0.1.5 — 2015-06-24
- 0.1.4 — 2015-06-22
- 0.1.3 — 2015-06-22
- 0.1.2 — 2015-06-08
- 0.1.1 — 2015-06-03
- 0.1.0 — 2015-05-29

## README

# Polygons to OBJ

Takes polygon and face arrays and returns an OBJ string

## Usage

```javascript
var polygons2obj = require("polygons-to-obj");

var polygons = [[[x,y,z], [...]], [[x,y,z], [...]]];
var faces = [[[v1,v2,v3], [...]], [[v1,v2,v3], [...]]];

var objStr = polygons2obj(polygons, faces);
```

---
_Source: https://npm.io/package/polygons-to-obj · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
