Пример #1
0
	// delete a pair of halfedges and make a inner loop
	// the isolated vertex will be identified by its he which is null
	// for consistency, we assume that he2 is next to he1 and they are a pair
	Loop* Solid::kemr(HalfEdge *he1)
	{
		Loop *lp = he1->l;
		// DelHalfEdge delete he1 and its partner halfedge
		// and return the isolated vertex
		// the isolated vertex is already in the solid's vertex list
		lp->delHalfEdgePair(he1);
		// modified at 2011-11-4 8:47:51, add a ring to the face
		Loop *newl = new Loop();
		lp->f->addLoop(newl);

		return newl;
	}