Beispiel #1
0
ostream &operator<<(ostream &stream, BOP_Vertex *v)
{
	char aux[20];
	BOP_stringTAG(v->m_tag,aux);
	MT_Point3 point = v->getPoint();
	stream << setprecision(6) << showpoint << fixed;
	stream << "Vertex[" << point[0] << "," << point[1] << ",";
	stream << point[2] << "] ("  <<  aux  <<  ")";
	return stream;
}
Beispiel #2
0
/**
 * Implements operator <<.
 */
ostream &operator<<(ostream &stream, BOP_Face *f)
{
	char aux[20];
	BOP_stringTAG(f->m_tag,aux);
	if (f->size()==3) {
		stream << "Face[" << f->getVertex(0) << "," << f->getVertex(1) << ",";
		stream << f->getVertex(2) << "] ("  <<  aux  <<  ") <-- " << f->m_originalFace;
	}
	else {
		stream << "Face[" << f->getVertex(0) << "," << f->getVertex(1) << ",";
		stream << f->getVertex(2) << "," << f->getVertex(3) << "] ("  <<  aux;
		stream <<  ") <-- " << f->m_originalFace;
	}

	return stream;
}