Socket
Socket
Sign inDemoInstall

basic-stl-generator

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    basic-stl-generator

Basic utils to generate a STL file


Version published
Weekly downloads
2
Maintainers
1
Install size
394 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 27 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc