Exemplo n.º 1
0
void _MeshParticleLayout_Print( void* meshParticleLayout, Stream* stream ) {
	MeshParticleLayout* self = (MeshParticleLayout*)meshParticleLayout;
	
	/* Set the Journal for printing informations */
	Stream* meshParticleLayoutStream = stream;
	
	/* General info */
	Journal_Printf( meshParticleLayoutStream, "MeshParticleLayout (ptr): %p:\n", self );
	
	/* Parent class info */
	_PerCellParticleLayout_Print( self, stream );
	
	/* MeshParticleLayout */
	Journal_Printf( meshParticleLayoutStream, "\tcellParticleCount: %u\n", self->cellParticleCount );
	Journal_Printf( meshParticleLayoutStream, "\tseed: %u\n", self->seed );
}
void _TriGaussParticleLayout_Print( void* triGaussParticleLayout, Stream* stream ) {
	TriGaussParticleLayout* self = (TriGaussParticleLayout*)triGaussParticleLayout;
	
	/* Set the Journal for printing informations */
	Stream* triGaussParticleLayoutStream = stream;
	
	/* General info */
	Journal_Printf( triGaussParticleLayoutStream, "TriGaussParticleLayout (ptr): %p:\n", self );
	
	/* Parent class info */
	_PerCellParticleLayout_Print( self, stream );
	
	/* Virtual info */
	
	/* TriGaussParticleLayout */
	Journal_Printf( triGaussParticleLayoutStream, "\tdim: %u\n", self->dim );
	Journal_Printf( triGaussParticleLayoutStream, "\tparticlesPerCell: %u\n", self->particlesPerCell  );
}