summaryrefslogtreecommitdiff
path: root/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Hexahedrondata.sci
diff options
context:
space:
mode:
Diffstat (limited to 'texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Hexahedrondata.sci')
-rw-r--r--texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Hexahedrondata.sci15
1 files changed, 15 insertions, 0 deletions
diff --git a/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Hexahedrondata.sci b/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Hexahedrondata.sci
new file mode 100644
index 00000000..7bc05ed9
--- /dev/null
+++ b/texmf-dist/scripts/ketpic/ketlib/ketpic2escifiles6/Hexahedrondata.sci
@@ -0,0 +1,15 @@
+// s : 2014.06.22
+
+function Out=Hexahedrondata(A,V1,V2,V3)
+ Tmp=det([V1;V2;V3]);
+ if Tmp<0 then
+ Tmp1=V1;
+ V1=V2;
+ V2=Tmp1
+ end
+ B=A+V1; C=A+V1+V2; D=A+V2;
+ E=A+V3; F=B+V3; G=C+V3; H=D+V3;
+ VL=list(A,B,C,D,E,F,G,H);
+ FL=list([1,4,3,2],[5,6,7,8],[1,2,6,5],[2,3,7,6],[3,4,8,7],[1,5,8,4]);
+ Out=list(VL,FL)
+endfunction