changeset 39:9ec616de33a8

*** empty log message ***
author gongo
date Sun, 05 Nov 2006 03:18:07 +0000
parents 5fa42ab7a9f8
children 3b5b270d2e44
files col.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/col.c	Sun Nov 05 03:11:54 2006 +0000
+++ b/col.c	Sun Nov 05 03:18:07 2006 +0000
@@ -7,6 +7,8 @@
 #include"col.h"
 #include"mytype.h"
 
+extern FILE *main_fp;
+
 /**
  * v0, v1が描く三角形と点pの内外判定(approx detection)
  * 点pはv0, v1が描く面のどこかに位置している。
@@ -100,6 +102,10 @@
     malloc_align16(&hd->free_addr, &colface, sizeof(ColFace)*face->siz/3);
 
     hd->facenum = face->siz/3;
+
+    fprintf(main_fp, "(ColFace)*face->size/3 = %d\n", sizeof(ColFace)*face->siz/3);
+    fprintf(main_fp, "          face->size/3 = %d\n", face->size/3);
+    fprintf(main_fp, "(ColFace)              = %d\n", sizeof(ColFace));
     
     for (i=0; i<hd->facenum; i++) {
 	memcpy(colface[i].p0, ((FVECTOR*)face->pnts)[i*3], sizeof(FVECTOR));