Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

☠️ Graphic editor for 3D-printable (biomedical implant) models in STL format. WebGL + Rust

License

NotificationsYou must be signed in to change notification settings

avbelyaev/3D-STL-model-editor

Repository files navigation

Editor for models in 3D-prinatble STL format

light-ui

Dark mode

dark-ui

Tech overview

  • Vanilla JavaScript frontend
    • Graphics based on vanilla WebGL with shaders and geometry maths :)
    • Models are stored in Indexed DB in browser
  • Nginx for HTTPS and Gzip
  • Rust Rocket backend

It was never intented to run in production. The main purpose was to learn fullstack development via project that is more interesting and more difficult that TODO app

Client-side (WebGL client)

Requirements:

  • GL-matrix lib should bedownloaded, compiled and placed at/webclient/js/lib/gl-matrix.js
  • Axios should bedownloaded and placed at/webclient/js/lib/axios.min.js

In order to adjust style use SASS-preprocessor fromthis link.Add to PATH:export PATH=$PATH:/path/to/dart-sass. Usage:sass style.scss style.css.Or it can be downloader with brew:brew install --devel sass/sass/sass

Server-side (Nginx, Goproxy, Rust)

Run:docker-compose up

Notes

  • Back to stable version of Rust:rustup default stable

  • Libgmp can be omitted on Mac:brew install gmp

  • Allow Chrome open local files on OSX

    open /Applications/Google\ Chrome.app --args --allow-file-access-from-files --disable-web-security --user-data-dir
  • Brew may require proxy. On Unix it can be set with the following command:export ALL_PROXY=https://host:port

  • Proxy for git (cargo/docker):git config --global http.proxy http://host:port

  • Docker could require https while pulling image.So prior to building image add the following to docker deamon config (dockerd).Docker config on macOS: tray -> preferences -> daemon -> advanced

    {  ... other options  "insecure-registries" : [    "registry-1.docker.io:443"  ]}

Todo

  • переиспользовать шейдеры и программу как предложеноздесь

  • сделать скрипт для скачивания gl-matrix/Logger/axios, выполнения npm install и перемещения в /js/lib

  • добавить в панель меню статистику о фигуре кол-во врешин, граней, объем и т.д.

About

☠️ Graphic editor for 3D-printable (biomedical implant) models in STL format. WebGL + Rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp