Skip to content

sunflowerseastar/hilbert-3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hilbert 3D

Written with three.js.

Quick Start

Dev:

# install deps
yarn
# run dev.js esbuild watcher
yarn start
# visit localhost:8080 (separate terminal)
npx http-server

Build:

# minified esbuild
yarn build

Both yarn start and yarn build create a public/out.js bundle.

Structure

  • public/ - static html/css + dev & build output
    • index.html - simple markup
    • style.css - simple styles
    • out.js - bundle file from yarn start or yarn build
  • src/ - js to be bundled
    • main.ts - entry for index.html
    • Path3.ts - helper Curve class for TubeGeometry