Edit

kc3-lang/kubz/gl_marching_cube.h

Branch :

  • gl_marching_cube.h
  • /* kubz
     * Copyright 2025 kmx.io <contact@kmx.io>
     *
     * Permission is hereby granted to use this software granted the above
     * copyright notice and this permission paragraph are included in all
     * copies and substantial portions of this software.
     *
     * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
     * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
     * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
     * THIS SOFTWARE.
     */
    #ifndef KUBZ_GL_MARCHING_CUBE_H
    #define KUBZ_GL_MARCHING_CUBE_H
    
    #include <libkc3/types.h>
    #include "types.h"
    
    u8        marching_cube_cell_cube_index (s_gl_marching_cube_cell *cell,
                                             f32 threshold);
    u8        marching_cube_cell_triangles (s_gl_marching_cube_cell *cell,
                                            f32 threshold, s_vec3 *dest);
    s_vec3 *  marching_cube_intersections (s_gl_marching_cube_cell *cell,
                                           f32 threshold,
                                           s_vec3 *dest);
    u8        marching_cube_intersections_triangles (s_vec3 *intersections,
                                                     u8 cube_index,
                                                     s_vec3 *dest);
    
    #endif /* KUBZ_MARCHING_CUBE_H */