
What this component contains
ATTRIBUTION.mdLICENSEREADME.mdcomponent.jsonexample.gltfmeshkit.pypolygon_offset_2d.pypreview.pngtest_package.pyverification/native.json
How it works
- Entry points
- offset_polygon, build, main
- Parameters
- distance, join, arc_segments
- Complexity
- O(n^2) including the self-intersection check
- Axes
- +Y up, metres; 2D (x, y) maps to (x, 0, -y)
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
generator_runs_system_pythongenerator_runs_verifier_pythongltf_strict_structureinterpreters_agreeexample_matches_generatorgodot_headless_gltf_loadgodot_compatibility_render
Limits to consider
Offsets that make edges vanish or cross are refused rather than cleaned up (no splitting into several polygons). Holes are not handled; offset each ring separately with the opposite sign. Round joins are polylines of arc_segments chords per right angle.