tested on
Code: Select all
OS: Artix Linux (openbox)
Word size of FreeCAD: 64-bit
Version: 0.20.27861 (Git)
Build type: Release
Branch: (HEAD detached at 6de9b3d)
Hash: 6de9b3d26e3549d50b9708995bb22c71ae7994c1
Python 3.9.10, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: Italian/Italy (it_IT)
Installed mods:
* Curves 0.3.0
Code: Select all
objc1 = wire.makeOffset2D(-3, 2)
- first parameter is used to determine the offset in this case a negative 3.0mm
- second parameters is used to determine transitions, using 2 you will have intersection
makes an offset shape (2d offsetting).
makeOffset2D(offset, [join = 0, fill = False, openResult = false, intersection =
false]) -> Shape
--
The function supports keyword
arguments. Input shape (self) can be edge, wire, face, or a compound of those.
* offset: distance to expand the shape by. Negative value will shrink the
shape.
* join: method of offsetting non-tangent joints. 0 = arcs, 1 = tangent, 2 =
intersection
* fill: if true, the output is a face filling the space covered by offset. If
false, the output is a wire.
* openResult: affects the way open wires are processed. If False, an open wire
is made. If True, a closed wire is made from a double-sided offset, with rounds
around open vertices.
* intersection: affects the way compounds are processed. If False, all children
are offset independently. If True, and children are edges/wires, the children
are offset in a collective manner. If compounding is nested, collectiveness
does not spread across compounds (only direct children of a compound are taken
collectively).
Returns: result of offsetting (wire or face or compound of those). Compounding
structure follows that of source shape.
This is the result with 2 (and 1) as join value:
This is the result for 0 or when you not specify a join value:
Hope it helps
Regards
Carlo D.