edge.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*************************************/
  2. /* Auteur : Rémi Synave */
  3. /* Date de création : 01/03/07 */
  4. /* Date de modification : 15/03/15 */
  5. /* Version : 0.4 */
  6. /*************************************/
  7. /***************************************************************************/
  8. /* This file is part of a2ri. */
  9. /* */
  10. /* a2ri is free software: you can redistribute it and/or modify it */
  11. /* under the terms of the GNU Lesser General Public License as published */
  12. /* by the Free Software Foundation, either version 3 of the License, or */
  13. /* (at your option) any later version. */
  14. /* */
  15. /* a2ri is distributed in the hope that it will be useful, */
  16. /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
  17. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
  18. /* GNU Lesser General Public License for more details. */
  19. /* */
  20. /* You should have received a copy of the GNU Lesser General Public */
  21. /* License along with a2ri. */
  22. /* If not, see <http://www.gnu.org/licenses/>. */
  23. /***************************************************************************/
  24. #ifndef EDGE__H
  25. #define EDGE__H
  26. #include <stdio.h>
  27. #include <stdlib.h>
  28. typedef struct
  29. {
  30. int ve1;
  31. int ve2;
  32. int *sharedfaces;
  33. int nbsharedfaces;
  34. int att_int;
  35. double att_double;
  36. } vf_edge;
  37. typedef struct
  38. {
  39. int ve1;
  40. int ve2;
  41. int *sharedfaces;
  42. int nbsharedfaces;
  43. } vef_edge;
  44. typedef struct
  45. {
  46. int ve1;
  47. int ve2;
  48. } skeleton_edge;
  49. /**
  50. Affichage d'une arete
  51. @param e arête à afficher
  52. @return aucun
  53. */
  54. void vf_edge_display (
  55. const vf_edge * const e);
  56. /**
  57. Libération de la mémoire
  58. @param e l'arete
  59. @return aucun
  60. **/
  61. void vf_edge_free (
  62. vf_edge * e);
  63. /**
  64. Affichage d'une arete
  65. @param e arête à afficher
  66. @return aucun
  67. */
  68. void vef_edge_display (
  69. const vef_edge * const e);
  70. /**
  71. Libération de la mémoire
  72. @param e l'arete
  73. @return aucun
  74. **/
  75. void vef_edge_free (
  76. vef_edge * e);
  77. #endif