solvespace/solvespace.cpp
Jonathan Westhues 19c6be530f Bits and pieces of SolveSpace; zoom works now, and some stuff to
draw planes that I will use to do the datum planes. Still haven't
settled upon the request/entity/group structure, and that's the
dependency before doing much real.

[git-p4: depot-paths = "//depot/solvespace/": change = 1656]
2008-04-01 02:48:44 -08:00

31 lines
660 B
C++

#include "solvespace.h"
template IdList<Request,hRequest>;
template IdList<Entity,hEntity>;
template IdList<Point,hPoint>;
SolveSpace SS;
void SolveSpace::Init(void) {
TW.Init();
GW.Init();
req.Clear();
entity.Clear();
point.Clear();
param.Clear();
// The sketch starts with three requests, for three datum planes.
Request n;
n.type = Request::FOR_PLANE;
req.AddById(&n, Request::HREQUEST_DATUM_PLANE_XY);
req.AddById(&n, Request::HREQUEST_DATUM_PLANE_YZ);
req.AddById(&n, Request::HREQUEST_DATUM_PLANE_ZX);
int i;
for(i = 0; i < 10; i++) {
TW.Printf("this is line number %d", i);
}
}