MCPcopy Create free account
hub / github.com/PerroEngine/Perro / push_quad

Function push_quad

perro_source/core/perro_builtin_meshes/src/lib.rs:464–474  ·  view source on GitHub ↗
(
    vertices: &mut Vec<BuiltinMeshVertex>,
    indices: &mut Vec<u16>,
    a: [f32; 3],
    b: [f32; 3],
    c: [f32; 3],
    d: [f32; 3],
)

Source from the content-addressed store, hash-verified

462}
463
464fn push_quad(
465 vertices: &mut Vec<BuiltinMeshVertex>,
466 indices: &mut Vec<u16>,
467 a: [f32; 3],
468 b: [f32; 3],
469 c: [f32; 3],
470 d: [f32; 3],
471) {
472 push_triangle(vertices, indices, a, b, c);
473 push_triangle(vertices, indices, a, c, d);
474}
475
476fn push_index_triangle_outward(
477 vertices: &[BuiltinMeshVertex],

Callers 3

cubeFunction · 0.85
square_pyramidFunction · 0.85
triangular_prismFunction · 0.85

Calls 1

push_triangleFunction · 0.85

Tested by

no test coverage detected