clear geometry data after transfered to C; enable object reuse

Temporary geometry data loaded into the object through the API
is now cleared when it is no longer needed - after it's been
loaded into C arrays for Triangle.