JSPM

basic-stl-generator-mk2

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q31828F
  • License CC0-1.0

Basic utils to generate a STL file

Package Exports

  • basic-stl-generator-mk2

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (basic-stl-generator-mk2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Basic STL Generator

Util functions that generate ASCII STL solid strings. See example results in sombras.app.

img2css

Getting Started

import { STLCube } from "basic-stl-generator";

console.log(`
  ${STLCube(0,0,0)}
  ${STLCube(1,1,1)}
  ${STLCube(2,2,2)}
`)

# To export to a file
# node index.js > testcube.stl

Exports

STLCube(x = 0, y = 0, z = 0, size = 10)

Returns a CUBE STL source for a cube using 12 triangular faces. X, Y, Z are the 3d coordinates.

More info.