Skip to content

Instantly share code, notes, and snippets.

@marcuswu
marcuswu / build_opencascade.md
Last active November 14, 2022 14:06
Compile OpenCascade on Linux

Compile OpenCascade (on Linux)

Install build depdencies

  • gcc
  • g++
  • cmake (and optionally cmake curses gui)

Install opencascade dependencies

  • tcl/tk
  • ft2
@marcuswu
marcuswu / example.js
Created January 20, 2020 15:51
Create a taurus and a cube with cylinders cut from it
const MakerCad = require('../index.js');
const Cube = function (face) {
let sketch = MakerCad.Sketch(face);
let line1 = sketch.line(sketch.point(0.0, 0.0), sketch.point(5.0, 0.0));
line1.length(10).horizontal();
let line2 = sketch.line(sketch.point(5.0, 0.0), sketch.point(5.0, 6.0));
line2.length(10).vertical();

Keybase proof

I hereby claim:

  • I am marcuswu on github.
  • I am mwu (https://keybase.io/mwu) on keybase.
  • I have a public key ASA4cD4gwJjeL5hZftvdjd-IS5WtpJVL77A-5b8jRKnSWAo

To claim this, I am signing this object: