Commit 1fd1e2c1 authored by Vladimír Ulman's avatar Vladimír Ulman
Browse files

ISBI_Generator, Added process max frames parameter.

parent 4803aaf6
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -26,7 +26,7 @@ int RenderMesh(const char* path,int fileNo);


int main(int argc,char **argv)
int main(int argc,char **argv)
{
{
	if (argc != 4 && argc != 5)
	if (argc != 4 && argc != 5 && argc != 6)
	{
	{
		//I'm executed with no params, provide help
		//I'm executed with no params, provide help
		std::cout << "ADD SOME HEADER INFORMATION HERE\n\n";
		std::cout << "ADD SOME HEADER INFORMATION HERE\n\n";
@@ -44,6 +44,9 @@ int main(int argc,char **argv)
	int i=0;
	int i=0;
	if (argc == 5) i=atoi(argv[4]);
	if (argc == 5) i=atoi(argv[4]);


	int framesToGoHome=999999999;
	if (argc == 6) framesToGoHome=atoi(argv[5]);

	//get dataset ID
	//get dataset ID
	int ID=atoi(argv[3]);
	int ID=atoi(argv[3]);


@@ -60,7 +63,7 @@ int main(int argc,char **argv)
	//indicator that the mesh translation has not been decided yet
	//indicator that the mesh translation has not been decided yet
	mesh.meshShift.x=-4567.f;
	mesh.meshShift.x=-4567.f;


	while (LoadNewMesh(argv[1],ID,i))
	while (LoadNewMesh(argv[1],ID,i) && (framesToGoHome > 0))
	{
	{
		std::cout << "mesh: #" << i << "\n";
		std::cout << "mesh: #" << i << "\n";
		std::cout << "vertices   #: " << mesh.Pos.size() << "\n";
		std::cout << "vertices   #: " << mesh.Pos.size() << "\n";
@@ -78,6 +81,7 @@ int main(int argc,char **argv)


		RenderMesh(argv[2],i);
		RenderMesh(argv[2],i);
		++i;
		++i;
		--framesToGoHome;
	}
	}


	//report the tip trajectories
	//report the tip trajectories