package OCADml

  1. Overview
  2. Docs
Types and functions for building CAD packages in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

OCADml-0.5.0.tbz
sha256=fc0b0a0ff598ff06550dfe0a93b279dc2df018914cc7883872d676d7da4dc14c
sha512=e02d943fbed9334730223ea12447b2495812db0bab20302516891d24c088fa8c4a60c366d0e083f4e675a25b394d101d115d3595e05284298d5803acc92351cf

Description

Types and functions for building CAD packages in OCaml

Tags

OCADml CAD

Published: 20 Apr 2023

README

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:

Dependencies (3)

  1. gg >= "1.0.0"
  2. dune >= "3.3"
  3. ocaml >= "4.14.0"

Dev Dependencies (1)

  1. odoc with-doc

Used by (2)

  1. OSCADml = "0.2.2"
  2. ppx_deriving_cad >= "0.2.0"

Conflicts (1)

  1. cairo2 < "0.6.2"
OCaml

Innovation. Community. Security.