46 lines
2.1 KiB
C
46 lines
2.1 KiB
C
/*
|
|
* Sweet is a small library for basic math and small matrix operations.
|
|
* Copyright 2014 Luc Girod.
|
|
*
|
|
* This library is free software: you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation, either
|
|
* version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef SWEET_GEOMETRY_H
|
|
#define SWEET_GEOMETRY_H
|
|
|
|
|
|
int sweet_geometry_subdivide_mesh_v (unsigned int nb_iterations, float scale,
|
|
unsigned int nb_indices, unsigned int * indices,
|
|
unsigned int nb_vertices, float * vcoord,
|
|
unsigned int * count_indices, unsigned int ** mesh_indices,
|
|
unsigned int * count_vertices, float ** mesh_vertices);
|
|
|
|
int sweet_geometry_subdivide_mesh_vt (unsigned int nb_iterations, float scale,
|
|
unsigned int nb_indices, unsigned int * indices,
|
|
unsigned int nb_vertices, float * vcoord, float * tcoord,
|
|
unsigned int * count_indices, unsigned int ** mesh_indices,
|
|
unsigned int * count_vertices, float ** mesh_vertices, float ** mesh_tcoord);
|
|
|
|
int sweet_geometry_icosphere (unsigned int nb_iterations, float scale,
|
|
unsigned int * count_indices, unsigned int ** mesh_indices,
|
|
unsigned int * count_vertices, float ** mesh_vertices);
|
|
|
|
int
|
|
sweet_geometry_cube (float scale,
|
|
unsigned int * count_indices, unsigned int ** mesh_indices,
|
|
unsigned int * count_vertices, float ** mesh_vertices);
|
|
|
|
#endif
|
|
|