hi!

my code:

extends NavigationRegion3D

func _ready() -> void:
	var collision_shape = $MeshInstance3D/StaticBody3D/CollisionShape3D
	var  nav_mesh = NavigationMesh.new()
	nav_mesh.agent_height = 2.0
	nav_mesh.agent_max_slope = 30.0
	var source_geometry = NavigationMeshSourceGeometryData3D.new()
	NavigationMeshGenerator.parse_source_geometry_data(nav_mesh, source_geometry, collision_shape)
	print(source_geometry.vertices)
	NavigationMeshGenerator.bake_from_source_geometry_data(nav_mesh, source_geometry)
	navigation_mesh = nav_mesh

my nodes

output result

Question:
Why is source_geometry empty?
And how do I generate and apply NavigationMesh correctly?

PS: I don't speak English well, but I will try to understand you. Thanks!

Added NavigationMesh manually
Used bake_navigation_mesh()

extends NavigationRegion3D

func _create_navigation_mesh() -> void:
	bake_navigation_mesh()
	print("Polygon count: ", navigation_mesh.get_polygon_count())

I'll try to work with this further