発生している問題・エラーメッセージ
以下のようなエラーが多数表示されるのですが,どうすれば良いか分かる方いますでしょうか. エラー (アクティブ) E0109 呼び出しのかっこの前の式は、関数型 (または pointer-to-function 型) である必要があります
該当のソースコード
C++
1/*************************************************************************** 2 3 file : ac3dgroup.cpp 4 created : Fri Apr 18 23:11:36 CEST 2003 5 copyright : (C) 2003 by Christophe Guionneau 6 version : $Id: ac3dgroup.cpp,v 1.6.2.9 2012/09/10 05:10:26 berniw Exp $ 7 8 ***************************************************************************/ 9 10/** @file 11 12 @author Christophe Guionneau 13 @version $Id: ac3dgroup.cpp,v 1.6.2.9 2012/09/10 05:10:26 berniw Exp $ 14*/ 15 16#include <stdio.h> 17#include <stdlib.h> 18#include <ctype.h> 19#include <cstring> 20#ifndef _GNU_SOURCE 21#define _GNU_SOURCE 22#endif 23#include <math.h> 24#ifdef WIN32 25#include <windows.h> 26#endif 27#include "accc.h" 28 29double strnicmp, strcmp, stricmp, stderr, sqrt, printf, malloc, fprintf, fopen, fabs, exit, atoi; 30 31extern int printOb(ob_t *ob); 32extern mat_t *root_material; 33extern void smoothTriNorm(ob_t *object ); 34void reorder(ob_t *ob,ob_t *ob2, double *textarray,tcoord_t *vertexarray); 35 36 37 38 39void assignArrays(ob_t *tmpob, ob_t* tmpob2, double **textarray, tcoord_t **vertexarray, char **texture) 40{ 41 while (tmpob2!=NULL) { 42 if (tmpob2->name==NULL) { 43 tmpob2=tmpob2->next; 44 continue; 45 } 46 if (!strcmp(tmpob2->name, "root")) { 47 tmpob2=tmpob2->next; 48 continue; 49 } 50 if (!strcmp(tmpob2->name, "world")) { 51 tmpob2=tmpob2->next; 52 continue; 53 } 54 if (tmpob->type!=NULL) { 55 if (!strcmp(tmpob->type,"group")) { 56 tmpob2=tmpob2->next; 57 continue; 58 } 59 } 60 61 int notinsameorder=FALSE; 62 if (!stricmp(tmpob2->name, tmpob->name) && tmpob->numvert==tmpob2->numvert) { 63 /* found an ob in ob1 */ 64 *texture=tmpob2->texture; 65 *textarray=tmpob2->textarray; 66 *vertexarray=tmpob2->vertexarray; 67 for (int i=0; i<tmpob->numvert; i++) 68 if ( 69 fabs(tmpob->vertex[i].x - tmpob2->vertex[i].x )>MINVAL || 70 fabs(tmpob->vertex[i].y - tmpob2->vertex[i].y )>MINVAL || 71 fabs(tmpob->vertex[i].z - tmpob2->vertex[i].z )>MINVAL ) 72 { 73 notinsameorder=TRUE; 74 } 75 if (notinsameorder==TRUE) { 76 printf("%s : points not in the same order, reordering ...\n",tmpob->name); 77 reorder(tmpob,tmpob2,*textarray,*vertexarray); 78 printf("%s : reordering ... done\n",tmpob->name); 79 } 80 break; 81 } 82 return; 83} 84 85

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/04 09:53
2018/12/04 10:01
2018/12/04 10:20
2018/12/04 10:27
2018/12/04 10:41
2018/12/04 10:57
2018/12/04 11:16
2018/12/04 11:21
2018/12/04 11:29
2018/12/04 11:58
2018/12/05 07:03
2018/12/05 07:07
2018/12/05 07:11
2018/12/05 07:47