API reference
ProceduralNodeOffsetPolygon
Inherits: ProceduralNode < Resource < Shared < Object
Grows or shrinks each polygon.
Description
Section titled “Description”Every edge moves out by offset (in by a negative one): a margin around a road, the inside of a wall, the yard inside a fence. A polygon that shrinks to nothing goes.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| int | join | 1 |
| float | offset | 10.0 |
Enumerations and constants
Section titled “Enumerations and constants”- JOIN_SQUARE =
0— Corners cut square.
- JOIN_ROUND =
1— Round corners.
- JOIN_MITER =
2— Sharp corners.
Property descriptions
Section titled “Property descriptions”int join = 1
Setter/getter: set_join(), get_join()
The corners when it grows: square, round or sharp (miter).
offset
Section titled “offset”float offset = 10.0
Setter/getter: set_offset(), get_offset()
How far the edges move out (in, below 0).