package OCADml
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=fbf52064d1823dea5249ad8232dd5b9e8b2f9db2202f08dfe16ccc240fc118cd
sha512=2575c0e4ba39cb1e06bd021fa82b00bf149be752134d269306009a9f754a05af558ddc5b59b464475818a6cbe7de274524a503cf7b4b154b9d73b51dad14fc7b
Description
Types and functions for building CAD packages in OCaml
README
OCADml
OCADml is a collection of types and functions facilitating Computer Aided Design (CAD) in OCaml. In particular, the style of design currently supported is that of 2D drawing and mesh generation via sweeping/extrusion.
Documentation
Documentation is available online, covering the API. As this library is not associated with any CAD backend, it is a bit dry on it's own and replete of examples. To get a better idea of what can be done with the tools provided it may be helpful to check out a library utilizing them.
CAD Package Specific Frontends
This library only provides a means to generate point and face based geometries, in order to perform boolean operations, validation, and export, you'll need to work with a particular CAD package.
OSCADml
Companion PPX
There is a companion ppx, [@@deriving cad] for generating transformation functions for user-defined records and abstract types made up of CAD specific types such as OSCADml's Scad.t
, along with their corresponding vector (V2.t
or V3.t
) types (and those composed of them) provided in this library.
Inspiration
This effort began as an extension of the Scad_ml OpenSCAD DSL, but grew to the point where it seemed prudent to break out into a "backend" agnostic format so as to be more generally useful.
Module organization and implementations borrow heavily from existing libraries in the OpenSCAD community: