GithubHelp home page GithubHelp logo

twitchyliquid64 / liquid-cad Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 2.0 944 KB

A 2-d, constraint-solving CAD for rapid prototyping

License: Apache License 2.0

Rust 98.89% JavaScript 0.09% Shell 0.06% HTML 0.70% Nix 0.26%
3d-printing cad egui rust

liquid-cad's Introduction

Liquid CAD

A 2D constraint-solving CAD program for rapid prototyping. Heavily inspired by SolveSpace.

Online demo: https://liquid-cad.twitchyliquid.net/

Slightly out-of-date video:

recording.mp4

Backlog for Beta

  • More work on Help page
  • More tests for 3D solid logic
  • Move 3D code to own crate
  • Export to STEP
  • Arc dragging
  • Broken constraint tools / solver stability (need help!):
    • Lines parallel

Building locally

Desktop

Make sure you are using the latest version of stable rust by running rustup update.

cargo run --release

On Linux you need to first run:

sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev

On Fedora Rawhide you need to run:

dnf install clang clang-devel clang-tools-extra libxkbcommon-devel pkg-config openssl-devel libxcb-devel gtk3-devel atk fontconfig-devel

On NixOS:

nix-shell to get into a working environment.

Web

On NixOS: cd liquid-cad && nix-shell then trunk serve or trunk build --release

Legacy OS'es:

  1. Install the required target with rustup target add wasm32-unknown-unknown.
  2. Install Trunk with cargo install --locked trunk.

Locally: Within the liquid-cad directory, run trunk serve to build and serve on http://127.0.0.1:8080. Trunk will rebuild automatically if you edit the project.

Deploying: Run trunk build --release and copy the dist directory.

License

Under MIT / Apache 2.0. Some icons from Noto emoji font under Apache 2.0.

liquid-cad's People

Contributors

twitchyliquid64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.