package OCADml
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=b8d3e9cae10f4a7a6ff67ae8b1aeff8bf8a8f1b202b2a24f098a9a5ad69b145f
sha512=166964f8c86e81ef31c8448b350b960b7a5a137eab3234d3200069841e5567778d29dc801ce2f7e7fc312953e8bacfc9e1c3d360d6b9d171a02e2a8c98c8438a
README.md.html
OCADml
OCADml is a collection of types and functions built on top of Gg 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 and validation of properties such as manifoldness you'll need to work with a particular CAD package.
OSCADml
OManifold
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: