diff --git a/mesh.cpp b/mesh.cpp new file mode 100644 index 0000000..6671dc4 --- /dev/null +++ b/mesh.cpp @@ -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); +} +