package bonsai-rt:mesh
⌘K
Ctrl+K
or
/
Index
Types (7)
Constants (0)
This section is empty.
Variables (0)
This section is empty.
Procedure Groups (0)
This section is empty.
Types
Mesh ¶
Mesh :: struct { verts: [dynamic][3]f32, uvs: [dynamic][3]f32, normals: [dynamic][3]f32, tris: [dynamic]Triangle, }
Related Procedures With Parameters
Related Procedures With Returns
ObjectFile ¶
ObjectFile :: struct { objects: [dynamic]ObjectFileObject, mesh: Mesh, }
Related Procedures With Returns
Triangle ¶
Triangle :: struct #packed { vert_indecies: [3]u32, uv_indecies: [3]u32, normal_indecies: [3]u32, material_index: u32, }
Related Procedures With Returns
WindingOrder ¶
WindingOrder :: enum untyped integer {
Clockwise,
CounterClockwise,
}
Constants
This section is empty.
Variables
This section is empty.
Procedures
flip_uvs_y_coord ¶
flip_uvs_y_coord :: proc(m: ^Mesh) {…}
read_obj_file ¶
read_obj_file :: proc(file_path: untyped string) -> ObjectFile {…}
read_obj_file_to_mesh ¶
read_obj_file_to_mesh :: proc(file_path: untyped string) -> Mesh {…}
recenter_mesh ¶
translates the mesh so the center of the mesh is 0, 0, 0 returns the required translation to translate back to the original
reverse_winding_order ¶
reverse_winding_order :: proc(m: ^Mesh) {…}
Procedure Groups
This section is empty.
Source Files
Generation Information
Generated with odin version dev-2025-04 (vendor "odin") Linux_amd64 @ 2025-05-13 09:15:52.883663562 +0000 UTC