Edge Finder
The Boundary Seeker. Detects and emits point positions where two specific logical IDs or semantic tags meet.
Ports
| Port | Type | Direction | Description |
|---|---|---|---|
| Logical IDs | Int | Input | The map data containing logical tile IDs. |
| Points | Point List | Output | A list of coordinates representing the found edges. |
Details
The Edge Finder is a powerful sampling tool used to place objects precisely at the boundary between different terrain types or structures. It can look for specific raw Logical IDs or use Semantic Tags to find edges between categories of tiles (e.g., "Wall" meeting "Floor").
Parameters
- Side A / Side B Configuration:
- Use Tags: When enabled, the side will match any tile belonging to the specified Semantic Tag.
- Tag: The semantic name to match (e.g.,
Cave_Wall). - ID: The raw Logical ID to match if tags are not used.
- Side:
- Side A: Emits points only on the "Type A" side of the boundary.
- Side B: Emits points only on the "Type B" side of the boundary.
- Both: Emits points from both sides.
- Min Run Length: The minimum number of consecutive boundary tiles required in a straight line (horizontal or vertical) for the points to be emitted. This filters out isolated single-tile edges.
- Point Count: Limits the total number of points returned. If set to 0, all qualifying edge tiles are returned.
Potential Use Cases
- Wall Decorations: Find the edge where
Stone_WallmeetsCave_Floorto place moss, torches, or support beams. - Shoreline Features: Detect the boundary between
WaterandSandto spawn driftwood or seashells. - Cliffside Paths: Find edges between
High_GroundandLow_Groundto place protective railings or decorative rocks.
Int
Point List