CHAMFERDISTANCEANGLE
The chamfer cutting the corner between two elements, a distance back along the first and leaving it at an angle.
Syntax
CHAMFERDISTANCEANGLE(@a,@b,d,angle).POINTA
CHAMFERDISTANCEANGLE(@a,@b,d,angle,endA,endB).POINTB
| Argument | Meaning |
|---|---|
| @a, @b | The two elements. |
| d | How far back along @a. |
| angle | The angle the cut leaves @a at, in degrees, turning towards @b: more than 0 and less than 180. |
| endA, endB | Which corner (optional). |
Result
The chamfer: take .POINTA and .POINTB, its ends, or .CORNER, where the two elements (extended if need be) meet.
Examples
In the example drawing:
| Expression | Gives |
|---|---|
CHAMFERDISTANCEANGLE(@5,@7,30,45).POINTA |
[70,0] |
CHAMFERDISTANCEANGLE(@5,@7,30,45).POINTB |
[90,20] |
Notes
The ends are START, END or NONE: the corner that cuts off the first element's endA and the second's endB. Leave both out (or NONE) for whichever corner fits best. The corner follows the elements.
See also: CHAMFERDISTANCES, CHAMFEREQUAL.