mesh.c
int mesh_remove_lone_edges(mesh_t *self)
{
	int i;
	int count = 0;
	mesh_lock(self);
	for(i = 0; i < vector_count(self->edges); i++)
	{
		edge_t *e = m_edge(self, i); if(!e) continue;
		if(!e_face(e, self))
		{
			mesh_remove_edge(self, i);
			count++;
		}
	}
	mesh_unlock(self);
	return count;
}
/* removes edges that don't belong to a face */
removes edges that don't belong to a face
removes edges that don ' t belong to a face
int mesh_remove_lone_edges(mesh_t *self)
{
	int i;
	int count = 0;
	mesh_lock(self);
	for(i = 0; i < vector_count(self->edges); i++)
	{
		edge_t *e = m_edge(self, i); if(!e) continue;
		if(!e_face(e, self))
		{
			mesh_remove_edge(self, i);
			count++;
		}
	}
	mesh_unlock(self);
	return count;
}
int mesh_remove_lone_edges ( mesh_t * self ) { int i ; int count = 0 ; mesh_lock ( self ) ; for ( i = 0 ; i < vector_count ( self -> edges ) ; i ++ ) { edge_t * e = m_edge ( self , i ) ; if ( ! e ) continue ; if ( ! e_face ( e , self ) ) { mesh_remove_edge ( self , i ) ; count ++ ; } } mesh_unlock ( self ) ; return count ; }
removes edges that don't belong to a face
removes edges that don ' t belong to a face