my code stock.com

Snippet options

Download: Download snippet as render.java.
Copy snippet: For this you need a free my code stock.com account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

//ViewInputPipeInPipe.java en weight

@Override
	public void load2DFrame()
	{

		main_glsurface.queueEvent(new Runnable()
		{
			@Override
			public void run()
			{

				DataPipeInPipe data = ViewInputPipeInPipe.getData();
				if (data == null)
					return;

				curPipes = 0;
				
                //(main_renderer3D.getWidth() >> da como +400 lo cual esta bien				

				// Add in reverse order to begin from outsider pipe
				//por aca pasa bien
				if (data.getCoatingWT() > 0f)
				{
					main_renderer3D.loadPipe2D(main_renderer3D.getWidth(), curPipes++, this.getClass().getName());
				}

				// Outer Pipe always is present
				//por aca pasa bien
				main_renderer3D.loadPipe2D(main_renderer3D.getWidth(), curPipes++, this.getClass().getName());

				if (data.getAnnulusWT() > 0f)
				{
					main_renderer3D.loadPipe2D(main_renderer3D.getWidth(), curPipes++, this.getClass().getName());
				}

				// Inner Pipe always present
				//por aca pasa bien
				main_renderer3D.loadPipe2D(main_renderer3D.getWidth(), curPipes++, this.getClass().getName());

			}
		});
	}
	
//------------------------------------
// private void calculateOutput()
	
//ambas variables tienen un valor >0
	
dataPipeInPipe.setAnnulusWT(annulusUserThickness);
dataPipeInPipe.setCoatingWT(coatingThickness);
		
//cuando va a buscar el color, lo trae bien. de hecho probe ponerle otro y lo dibuja bien pero finito
		
dataPipeInPipe.setColorAnnulus(getColor("annulus"));
dataPipeInPipe.setColorCoating(getColor("coating"));

// aca entra bien		
		
if (coatingThickness > 0f && annulusUserThickness > 0f)
			dataPipeInPipe.setNumPipes(4);
	
	

//mirando el log, tampoco tira alguna excepcion
	
	

Create a free my code stock.com account now.

my code stok.com is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!

Find out more and register now

You can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.