https://github.com/sueda/eol-cloth
Revision 28fad2e07ec31f0dfd2c681878904e707f6715d5 authored by Shinjiro Sueda on 11 September 2018, 15:17:28 UTC, committed by GitHub on 11 September 2018, 15:17:28 UTC
1 parent 3c3ef84
Tip revision: 28fad2e07ec31f0dfd2c681878904e707f6715d5 authored by Shinjiro Sueda on 11 September 2018, 15:17:28 UTC
Create LICENSE
Create LICENSE
Tip revision: 28fad2e
ComputeBending.h
#pragma once
#ifndef __ComputeBending__
#define __ComputeBending__
void ComputeBending(
const double *x0, // [input 3x1] World position of vertex 0
const double *x1, // [input 3x1] World position of vertex 1
const double *x2, // [input 3x1] World position of vertex 2
const double *x3, // [input 3x1] World position of vertex 3
const double *X0, // [input 2x1] Material position of vertex 0
const double *X1, // [input 2x1] Material position of vertex 1
const double *X2, // [input 2x1] Material position of vertex 2
const double *X3, // [input 2x1] Material position of vertex 3
double beta, // [input 1x1] Bending stiffness
double *W, // [output 1x1] Bending potential energy
double *f, // [output 12x1] Bending force vector
double *K) // [output 12x12] Bending stiffness matrix
;
#endif
Computing file changes ...