![]() |
AngelCAD
1.5-00
|
2d profile offset More...
#include <angelcad.h>
Public Member Functions | |
| offset2d (const shape2d@ profile, double r=0x7fc00000, double delta=0x7fc00000, bool chamfer=false) | |
| Compute 2d offset for a 2d profile. More... | |
| offset2d (array< shape2d@>@ arr, double r=0x7fc00000, double delta=0x7fc00000, bool chamfer=false) | |
| Compute 2d offset for an array of 2d shapes. More... | |
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 profile offset
offset2d is a special 2d operation used for inflating or shrinking a 2d shape,
optionally creating rounded corners and chamfers.
| offset2d::offset2d | ( | const shape2d@ | profile, |
| double | r = 0x7fc00000, |
||
| double | delta = 0x7fc00000, |
||
| bool | chamfer = false |
||
| ) |
Compute 2d offset for a 2d profile.
| profile | shape2d@, 2d profile to be offset |
| r | double, radius if rounded offset required (cannot be combined with delta) |
| delta | double, straight offset if sharp corners required (cannot be combined with r) |
| chamfer | bool, true if sharp corners to be chamfered (relevant with delta only) |
| offset2d::offset2d | ( | array< shape2d@>@ | arr, |
| double | r = 0x7fc00000, |
||
| double | delta = 0x7fc00000, |
||
| bool | chamfer = false |
||
| ) |
Compute 2d offset for an array of 2d shapes.
| arr | array@, array of 2d shapes to be offset |
| r | double, radius if rounded offset required (cannot be combined with delta) |
| delta | double, straight offset if sharp corners required (cannot be combined with r) |
| chamfer | bool, true if sharp corners to be chamfered (relevant with delta only) |
1.8.13