src/taesooLib/BaseLib/motion/Geometry.cpp
void Geometry::pack(BinaryFile& bf)
{
	int version=1; // version 1: geometry. 
	bf.packInt(version);
	bf.packInt(elements.size());
	for (int i=0; i<elements.size(); i++)
	{
		bf.packInt(elements[i].elementType);
		bf.pack( elements[i].elementSize );
		bf.pack( elements[i].tf.rotation);
		bf.pack( elements[i].tf.translation);
		bf.packInt( faceGroups.start(i));
		bf.packInt( faceGroups.end(i));
	}
	Mesh::pack(bf);
}
// always make file format backward compatible.
always make file format backward compatible.
always make file format backward compatible .
void Geometry::pack(BinaryFile& bf)
{
	int version=1; 
	bf.packInt(version);
	bf.packInt(elements.size());
	for (int i=0; i<elements.size(); i++)
	{
		bf.packInt(elements[i].elementType);
		bf.pack( elements[i].elementSize );
		bf.pack( elements[i].tf.rotation);
		bf.pack( elements[i].tf.translation);
		bf.packInt( faceGroups.start(i));
		bf.packInt( faceGroups.end(i));
	}
	Mesh::pack(bf);
}
void Geometry :: pack ( BinaryFile & bf ) { int version = 1 ; bf . packInt ( version ) ; bf . packInt ( elements . size ( ) ) ; for ( int i = 0 ; i < elements . size ( ) ; i ++ ) { bf . packInt ( elements [ i ] . elementType ) ; bf . pack ( elements [ i ] . elementSize ) ; bf . pack ( elements [ i ] . tf . rotation ) ; bf . pack ( elements [ i ] . tf . translation ) ; bf . packInt ( faceGroups . start ( i ) ) ; bf . packInt ( faceGroups . end ( i ) ) ; } Mesh :: pack ( bf ) ; }
always make file format backward compatible.
always make file format backward compatible .
// version 1: geometry. 