// ThinPlate.cpp: ThinPlate クラスのインプリメンテーション // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "MeshEditor.h" #include "ThinPlate.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // 構築/消滅 ////////////////////////////////////////////////////////////////////// ThinPlate::ThinPlate() { count = 0; } ThinPlate::~ThinPlate() { } float ThinPlate::func(float p[]) { int face_N = mesh->face_N; float (*normal)[3] = mesh->normal_f; int (*face)[3] = mesh->face; float E = 0; for(int i=0; ivertex_N; int **link = mesh->vertex_link_v; int **link_f = mesh->vertex_link_f; int *degree = mesh->degree_v; int *isBound = mesh->isBound; float (*normal)[3] = mesh->normal_f; for(int i=0; ivertex_N; int **link = mesh->vertex_link_v; int *degree = mesh->degree_v; double E = 0; for(int i=0; ivertex_N; int **link = mesh->vertex_link_v; int *degree = mesh->degree_v; float (*L)[3] = new float[n][3]; for(int i=0; i