And add mesh.cpp, which I had forgotten.

[git-p4: depot-paths = "//depot/solvespace/": change = 1734]
solver
Jonathan Westhues 2008-05-22 02:28:50 -08:00
parent 7c4d305895
commit c079497762
1 changed files with 14 additions and 0 deletions

14
mesh.cpp Normal file
View File

@ -0,0 +1,14 @@
#include "solvespace.h"
void SMesh::Clear(void) {
l.Clear();
}
void SMesh::AddTriangle(Vector a, Vector b, Vector c) {
STriangle t; ZERO(&t);
t.a = a;
t.b = b;
t.c = c;
l.Add(&t);
}