HW5
4/3/26Less than 1 minute
HW5
noise
psuedo code
Mesh::loadObj(stirng filename) {
vector<uPtr<Vertex>> &vertx = verts;
vector<uPtr<Vertex>> &edges = edges;
vector<uPtr<Vertex>> &hes = ;
for ("f" line in OBJ file) {
uPtr<Face> f = mkU<Face>(random color);
}
}HalfEdge::HalfEdge(Vertex *v, Face *f)
: vertex(v), face(f), next(nullptr), sym(nullptr)
{
v->setHE(this);
f->setHE(this);
}countAdjacencytricky part: set syms
