AngelCAD
1.5-00
|
2d union boolean operation More...
#include <angelcad.h>
Public Member Functions | |
union2d (const shape2d@ s1, const shape2d@ s2) | |
Compute union of 2 objects. More... | |
union2d (const shape2d@ s1, const shape2d@ s2, const shape2d@ s3) | |
Compute union of 3 objects. More... | |
union2d (const shape2d@ s1, const shape2d@ s2, const shape2d@ s3, const shape2d@ s4) | |
Compute union of 4 objects. More... | |
union2d (const shape2d@ s1, const shape2d@ s2, const shape2d@ s3, const shape2d@ s4, const shape2d@ s5) | |
Compute union of 5 objects. More... | |
union2d (array< shape2d@>@ arr) | |
Public Member Functions inherited from shape2d | |
shape2d@ | opAdd (shape2d@ b) |
Boolean union operator+ overload. More... | |
shape2d@ | opAnd (shape2d@ b) |
Boolean intersection operator& overload. More... | |
shape2d@ | opMul (tmatrix@ matrix) |
Transform object by matrix multiplication: shape2d@ o2 = T * o1. More... | |
shape2d@ | opSub (shape2d@ b) |
Boolean difference operator- overload. More... | |
Public Member Functions inherited from shape | |
boundingbox@ | box () const |
Return bounding box of object. More... | |
tmatrix@ | transform () const |
Return transformation matrix of object. More... | |
void | write_csg (string path) |
Write object to OpenSCAD .csg file. More... | |
void | write_xcsg (string path, double secant_tolerance=- 1.0) |
Write object to .xcsg file for processing by xcsg program. More... | |
2d union boolean operation
union2d is a 2-dimensional boolean operation. It can be invoked either
explicitly or using + operator:
explicit: shape2d@ object = union2d(circle(100),translate(75,0,0)*circle(50));
using & operator: shape2d@ object = circle(100) + translate(75,0,0)*circle(50);