Skip to content

Conversation

@kleonc
Copy link
Member

@kleonc kleonc commented Nov 18, 2025

  • HeightMapShape3D::get_debug_arraymesh_faces was creating 4 vertices (position+color) per grid quad instead of a single vertex per grid point. Made it not generate duplicated vertices. The mesh layout/topology remains unchanged (hence index count is the same before/after).
map_widthmap_depth (Before)
vertex count
(After)
vertex count
WD (W - 1) * (D - 1) * 4 W * D
2⨯2 4 4
10⨯10 324 100
100⨯100 39 204 10 000
1000⨯1000 3 992 004 1 000 000
  • Fixed HeightMapShape3D::get_debug_arraymesh_faces erroring when map_width == 1 or map_depth == 1 (which are allowed by relevant setters).

  • Made HeightMapShape3D::get_debug_mesh_lines() not use .write() while generating line points.

@kleonc kleonc added this to the 4.6 milestone Nov 18, 2025
@kleonc kleonc requested a review from a team as a code owner November 18, 2025 14:06
@Repiteo Repiteo modified the milestones: 4.6, 4.x Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants