consolidated_geometry_tests

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Source File: /addons/grid_building/test/utilities/geometry/consolidated_geometry_tests.gd

Extends: GdUnitTestSuite

Properties

  • Property: trapezoid_points: PackedVector2Array = PackedVector2Array([

Private Properties

  • Property: _test_tile_map_layer: TileMapLayer = null (private)
  • Property: _created_test_nodes: Array[Node] = [] (private)

Constants

  • Constant: TILE_SIZE: Vector2 = Vector2(16, 16)
  • Constant: TILE_SIZE_LARGE: Vector2 = Vector2(32, 32)
  • Constant: OVERLAP_THRESHOLD: float = 0.01
  • Constant: AREA_THRESHOLD: float = 0.05
  • Constant: MIN_POLYGON_POINTS: int = 3
  • Constant: MIN_AREA_THRESHOLD: float = 0.001
  • Constant: POSITION_OFFSET: Vector2 = Vector2(32, 48)
  • Constant: PROBLEMATIC_TILE_COORD: Vector2i = Vector2i(49, 41)
  • Constant: TILE_WORLD_POS: Vector2 = Vector2(784, 656) # 49*16, 41*16
  • Constant: POSITIONER_OFFSET: Vector2 = Vector2(800, 672)
  • Constant: COLLISION_POLYGON_OFFSET: Vector2 = Vector2(0, 0)

Public Methods

before_test

1
before_test() -> void

after_test

1
after_test() -> void

test_polygon_below_threshold_excluded

1
test_polygon_below_threshold_excluded() -> void

test_polygon_above_threshold_included

1
test_polygon_above_threshold_included() -> void

test_concave_polygon_void_handling

1
test_concave_polygon_void_handling() -> void

test_trapezoid_top_left_overlap

1
test_trapezoid_top_left_overlap() -> void

test_correct_trapezoid_geometry

1
test_correct_trapezoid_geometry() -> void

test_indicator_polygon_heuristics

1
test_indicator_polygon_heuristics() -> void

test_geometry_math_edge_cases

1
test_geometry_math_edge_cases() -> void

test_polygon_area_calculations

1
test_polygon_area_calculations() -> void

test_tile_overlap_comprehensive

1
test_tile_overlap_comprehensive() -> void

test_gb_geometry_math_edge_cases

1
test_gb_geometry_math_edge_cases() -> void

test_geometry_math_polygon_intersection_area

1
test_geometry_math_polygon_intersection_area() -> void

test_geometry_utils_collision_shapes

1
test_geometry_utils_collision_shapes() -> void

test_collision_geometry_utils_transform_building

1
test_collision_geometry_utils_transform_building() -> void

test_collision_geometry_polygon_operations

1
test_collision_geometry_polygon_operations() -> void

test_collision_geometry_convex_check

1
test_collision_geometry_convex_check() -> void

test_geometry_collision_integration

1
test_geometry_collision_integration() -> void

test_performance_utilities_combined

1
test_performance_utilities_combined() -> void

Private Methods

_track_test_node

1
_track_test_node(node: Node) -> Node

Flags: private

Helper to track test nodes for proper cleanup


_tile_shape_name

1
_tile_shape_name(tile_shape: TileSet.TileShape) -> String

Flags: private


_format_polygon

1
_format_polygon(polygon: PackedVector2Array) -> String

Flags: private



Grid Building v5.0.8 | Generated 24/05/2026