Giter VIP home page Giter VIP logo

polydraw's Introduction


Polydraw
Polydraw

Library for generating 3D models via a Haskell EDSL OpenSCAD.


Graphics.Polydraw

Built with Nix [[https://img.shields.io/badge/built%20with-Haskell-8f4e8b.svg]]

๐Ÿš€ย  Installation

Using nix flake

There needs to be an input:

inputs = {
    ...
    polydraw.url = "github:dsunshi/polydraw";
    ...
};

Then we can add the package:

haskellProjects.default = {
    packages = {
        polydraw.source = inputs.polydraw;
    };
};

Example flake.nix

The following is the content of a flake.nix file, which can be used to build a project using polydraw.

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    flake-parts.url = "github:hercules-ci/flake-parts";
    haskell-flake.url = "github:srid/haskell-flake";
    polydraw.url = "github:dsunshi/polydraw";
  };
  outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
    flake-parts.lib.mkFlake { inherit inputs; } {
      systems = nixpkgs.lib.systems.flakeExposed;
      imports = [ inputs.haskell-flake.flakeModule ];

      perSystem = { self', pkgs, ... }: {

        haskellProjects.default = {
            packages = {
                polydraw.source = inputs.polydraw;
            };
        };

        # haskell-flake doesn't set the default package, but you can do it here.
        packages.default = self'.packages.<your-package-name>;
      };
    };
}

โค๏ธย  Origin from Graphics.Polydraw

Polydraw is primarily a fork of the brilliant Graphics.OpenSCAD. It has been updated to more modern versions of Haskell (as well as my personal opinions). This project is in very early stages and is subject to change.

How?

This library provides an algebraic data type for describing OpenSCAD models, and a function that converts that data type into a string.

More info

๐Ÿ“˜ย  License

License

polydraw's People

Contributors

dsunshi avatar

Watchers

 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.