{{ message }}

Instantly share code, notes, and snippets.

# Carsten Arnholmarnholm

Last active Oct 4, 2020
View hull_array.md

# 3d hull from an array of solids

```// AngelCAD code.

shape@ main_shape(as_args@ args)
{
array<solid@> spheres;
for(int i=-1; i<=1; i+=2)
for(int j=-1; j<=1; j+=2) ```
Last active Oct 4, 2020
View polyhedron_hull.md

## Create polyhedron from point cloud

When a polyhedron is created from an array of points, it is interpreted as a convex hull

```// AngelCAD code.
shape@ main_shape(as_args@ args)
{
array<pos3d@> hull_points = { {-1,-1,0}, {-1,1,0}, {1,1,0}, {1,-1,0}, {1/2,1,2} };
return polyhedron(hull_points);```
Last active Aug 13, 2020
View A performance test.md
Last active May 26, 2020
View USB-winkeler.md
```// AngelCAD code: USB-winkeler.as

// calbe diameter
double d1 = 5;
double r1= 20;
//wall thickness```
Last active May 13, 2020

Original problem using OpenSCAD to import an STL fils

```union()
{
translate([0, 0, 6])
scale([0.9842519685, 0.9842519685, 1])
import("floor.stl");
cube([50, 50, 6]);
}```
Last active Mar 28, 2020
View intersection_box.md
```// AngelCAD code.

shape@ main_shape()
{
// create cube & sphere in default positions
double d = 100;
solid@ mycub = cube(size:d);
solid@ mysph = sphere(r:d*0.8);```
Last active Mar 2, 2020
View main.cpp
 #include using namespace std; #include "cf_serial/cf_serial_simple.h" int main(int argc, char **argv) { try { cf_serial_simple serial("COM8");
Last active Feb 9, 2020
minkowski3d_3.as - Demonstrates 3d filetting using minkowski
View minkowski3d_3_1.md
```// AngelCAD sample: minkowski3d_3.as
// Demonstrates 3d filetting using minkowski3d

solid@ object(double sz)
{
// cuboids extending in 3 axis directions
return   translate(-sz,0,0) * cuboid(2*sz,sz,sz)
+ translate(0,-sz,0) * cuboid(sz,2*sz,sz)
+ cuboid(sz,sz,2*sz);```
Last active Jan 4, 2020
View minkowski_ball.md
```// AngelCAD code. https://arnholm.github.io/angelcad-docs/

shape@ main_shape()
{
double ball_height = 56;
```// AngelCAD code. Demonstrate fillet between two plates