Jump to content

No mapa, mostrar o nome do bairro usando evento de mouse (Mapa de imagem em C++ OpenGL)


Hemerson

Recommended Posts

Na imagem abaixo, é possível verificar alguns "retângulos verticais" amarelos que representam as marcações que eu fiz para quando o mouse estiver sobre o retângulo, aparecer o nome do bairro na tela, mas os mapas de bairro não são retangulares, eu preciso marcar toda a extremidade do mapa, mas não sei como poderia fazer isso, vocês podem me dá uma dica?

Desde já Agradeço!

http://img715.imageshack.us/img715/339/mapafh.png

Link to comment
Share on other sites

é óbvio que não vais lá com rectângulos ... mesmo que uses uma boa aproximação, será sempre muito estranho

a maneira mais simples é :

- teres a imagem com boa definição

- pintares cada bairro com uma cor diferente, não interessa o quanto diferente

- fazeres a conversão da posição do rato no ecrã para a posição na imagem

- verificares a cor do pixel que o rato está (na imagem)

- através da cor, verificares qual o bairo que está sobreposto

(e isto é a maneira mais simples)

IRC : sim, é algo que ainda existe >> #p@p
Link to comment
Share on other sites

int geom[99][9500]={	
{58,85,59,85,60,85,61,85,62,85,63,85,63,85,63,85,66,83,67,82,67,75,67,73,67,73,67,72,67,72,67,72,67,72,67,72,67,71,67,71,69,71,69,69,69,68,69,67,69,67,68,66,68,65,68,64,68,63,68,63,68,62,68,61,68,60,68,59,68,59,67,59,67,59,67,60,67,60,67,60,66,60,67,60,67,60,67,61,67,61,67,61,67,61,67,61,67,61,67,61,67,61,67,61,67,61,67,61,67,61,67,62,67,62,67,62,67,62,66,62,66,62,66,62,66,62,66,62,66,62,66,62,66,62,66,62,66,62,66,62,66,62,66,62,65,62,65,62,65,62,65,62,65,62,65,62,65,62,65,62,65,62,65,62,65,62,65,62,65,62,65,62,65,62,64,62,64,62,64,62,64,62,64,62,64,62,64,62,64,63,64,63,64,63,64,63,64,63,64,63,64,63,64,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,62,63,62,63,62,63,62,62,62,62,62,62,62,62,62,62,61,62,61,62,61,62,61,62,61,62,61,62,61,62,61,62,61,62,61,62,61,62,61,62,60,62,60,62,58,62,58,62,58,62,57,61,57,61,56,61,55,61,55,61,55,61,54,61,54,61,54,61,54,61,53,61,53,61,53,60,53,60,53,60,53,60,53,60,52,60,52,60,52,60,52,60,52,61,52,61,52,60,52,60,52,61,52,61,51,61,51,60,51,61,51,61,51,61,51,61,51,61,51,61,51,61,51,61,51,61,51,61,51,61,51,61,51,61,51,62,51,62,51,62,51,62,51,62,51,62,51,62,51,62,52,62,52,62,52,62,52,63,52,63,52,63,52,63,52,63,53,63,53,63,53,63,53,63,53,63,53,63,53,63,53,63,53,63,53,63,53,63,53,64,53,64,53,65,52,65,52,65,52,65,52,65,52,66,52,66,52,66,52,66,52,67,52,67,51,67,51,67,51,67,51,67,51,67,51,67,51,68,51,68,51,68,51,68,51,68,51,68,51,68,51,68,51,68,51,68,51,68,51,68,51,68,51,68,52,68,52,69,52,69,52,69,52,69,51,70,51,70,51,69,51,69,51,69,51,70,51,70,51,70,51,70,51,70,51,70,51,70,51,71,51,71,50,71,50,71,50,71,50,71,50,71,50,71,50,71,50,71,50,71,50,71,50,71,50,71,50,72,50,72,50,72,50,72,50,72,50,72,50,72,50,72,50,72,50,72,50,72,51,72,51,72,51,72,51,72,52,73,52,74,52,74,52,74,52,75,52,75,52,75,52,75,52,76,52,76,51,76,52,76,52,76,52,76,52,76,52,77,52,77,52,77,52,77,52,77,52,77,52,77,52,77,52,78,52,78,52,78,52,78,52,78,52,78,52,78,52,78,52,78,52,78,52,78,52,78,52,78,52,78,52,79,52,79,53,79,53,79,53,79,53,79,53,79,53,79,53,78,53,78,53,78,53,78,53,78,54,78,54,78,54,78,54,78,54,78,54,78,54,78,55,79,55,79,55,79,55,79,55,80,55,80,56,80,57,81,57,81,57,82,57,82,57,82,58,83,57,83,57,83,57,83,58,83,58,84,58,84,58,84,58,85,58,85,58,85,58,85,58,85},
{123,72,123,71,123,71,123,70,123,70,123,70,122,69,122,69,122,68,122,68,122,68,122,67,122,67,122,66,122,66,122,66,122,66,122,66,122,66,124,67,124,67,124,67,124,67,124,67,125,67,125,67,125,67,125,67,125,67,126,68,126,68,126,68,126,68,126,68,127,68,127,68,127,68,127,68,127,68,127,68,128,68,128,68,128,68,128,68,128,68,128,68,129,68,129,68,129,68,129,68,129,68,130,68,130,68,130,68,130,68,130,68,131,68,131,69,131,69,132,69,132,69,132,69,132,69,132,69,132,69,132,70,132,70,133,70,133,70,133,70,133,70,133,70,133,70,134,70,134,70,134,70,134,70,134,70,134,70,134,70,135,69,135,69,135,70,135,70,135,70,135,70,135,70,135,70,136,70,136,70,136,70,136,70,136,70,136,70,136,70,136,70,137,71,137,71,137,71,137,71,137,71,137,71,137,71,137,72,137,70,138,70,138,70,138,70,138,70,138,69,138,69,138,69,138,69,138,68,138,68,137,68,137,68,137,68,137,68,137,68,138,68,138,68,138,67,138,67,138,67,138,67,138,67,138,67,138,67,138,67,138,67,138,66,138,66,139,66,139,66,139,66,139,66,139,65,139,65,139,65,139,65,139,65,139,65,139,65,139,65,139,65,139,65,139,65,139,65,139,64,139,64,139,64,139,64,139,64,139,64,140,64,140,63,140,63,140,63,140,63,140,63,140,63,140,63,141,63,141,63,141,63,141,63,141,62,141,62,142,61,142,61,142,61,142,60,142,60,141,60,141,60,140,59,140,59,140,59,140,58,140,58,140,58,139,58,139,58,138,58,138,58,138,58,138,58,138,58,138,57,138,57,137,57,137,57,137,57,137,56,137,56,137,56,137,56,137,56,137,56,137,55,137,55,137,55,137,55,137,54,137,54,137,54,137,53,137,53,137,53,137,53,137,52,137,52,136,52,136,52,136,52,136,52,136,51,136,51,136,51,135,51,135,52,135,52,135,52,135,52,135,52,135,52,134,52,134,52,134,52,134,52,134,52,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,51,134,50,134,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,133,50,132,50,132,50,132,50,132,50,132,50,132,50,132,50,131,50,131,50,131,50,131,50,131,50,131,50,131,50,131,50,130,50,130,50,130,50,130,50,130,50,130,50,130,50,130,50,130,50,130,50,130,50,130,50,130,50,130,50,129,50,129,50,129,50,129,50,129,50,129,50,129,50,129,50,129,50,129,50,129,50,129,50,129,50,129,50,129,51,129,51,129,51,129,51,129,51,129,51,129,51,129,51,129,51,129,51,129,51,129,51,129,51,129,51,129,51,129,51,129,52,129,52,129,52,129,52,129,52,129,52,129,52,129,52,129,52,129,52,129,52,129,52,129,52,129,53,129,53,129,53,129,53,129,53,129,53,129,53,129,53,129,53,129,53,129,53,129,53,129,53,129,54,129,54,129,54,129,54,129,54,129,54,128,54,129,54,129,54,129,54,129,54,129,54,129,54,128,54,128,55,128,55,128,55,128,55,128,55,128,55,128,55,128,55,128,55,128,55,128,55,128,55,128,55,128,55,128,55,128,55,128,55,126,56,126,56,126,56,126,56,126,56,126,56,126,56,126,56,126,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,125,56,124,56,124,56,124,56,124,56,124,56,124,56,124,56,124,56,124,56,124,56,124,56,124,56,124,56,124,56,124,57,124,57,124,57,124,57,123,57,123,56,123,56,123,56,123,56,123,56,123,56,123,57,123,57,123,57,123,57,123,57,123,57,123,57,123,57,123,57,123,57,122,57,123,57,123,57,123,57,123,57,123,57,123,57,123,57,123,58,123,58,123,58,123,58,123,58,123,58,123,58,123,58,123,58,123,58,123,58,123,58,123,58,123,58,123,58,123,59,123,59,123,59,123,59,123,59,122,59,122,59,122,59,122,59,122,59,122,59,122,59,122,59,122,59,121,59,121,59,121,59,121,59,121,59,121,59,121,59,121,59,121,59,120,59,120,59,120,59,120,59,120,59,120,59,120,59,120,59,119,59,119,59,119,59,119,59,119,59,119,59,119,59,119,59,119,59,119,59,119,59,119,59,119,59,118,59,118,59,118,59,118,59,118,59,118,59,118,59,118,59,118,60,118,60,118,60,118,60,118,60,118,60,118,60,118,59,117,59,117,59,117,59,117,59,117,59,117,59,117,59,117,59,117,59,117,59,117,59,117,59,117,59,117,59,117,59,116,59,116,59,116,59,116,60,116,60,116,60,116,60,116,60,116,60,116,60,116,60,116,60,116,60,116,60,116,60,116,60,115,60,115,60,115,60,115,60,115,60,115,60,115,60,115,60,115,61,115,61,115,61,115,61,115,61,115,61,115,61,115,61,115,61,115,61,115,61,114,61,114,61,114,61,114,60,114,60,114,60,114,60,114,60,114,60,114,60,114,60,114,60,114,60,114,60,114,60,114,60,114,60,114,60,113,60,113,60,113,60,114,60,114,60,114,59,114,59,113,59,113,59,113,59,113,59,113,60,113,60,113,60,113,60,113,60,113,59,113,59,113,59,113,59,113,59,113,59,114,59,114,59,114,59,114,59,113,59,113,59,113,59,113,59,113,59,113,59,112,59,112,59,112,59,112,59,112,59,112,59,112,59,112,59,111,59,111,59,111,59,111,59,111,59,111,59,111,59,111,58,111,58,111,59,111,59,111,59,111,59,111,59,111,59,111,59,111,59,111,59,111,59,112,59,111,59,111,59,111,59,111,59,111,59,111,59,111,59,111,59,111,59,111,59,111,59,111,59,111,59,111,58,111,58,111,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,110,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,109,58,108,58,108,58,108,58,108,58,108,58,108,58,108,58,108,58,108,58,108,58,108,58,108,58,108,58,108,58,108,58,107,58,107,58,107,58,107,58,107,58,107,58,107,58,108,58,107,58,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,59,107,60,107,60,107,60,107,60,107,59,107,59,107,59,107,59,106,59,106,59,106,59,106,59,106,59,106,59,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,60,106,61,105,61,105,61,105,61,105,61,105,61,105,61,105,61,105,61,105,61,105,61,105,61,105,62,105,62,105,62,105,62,105,62,105,62,105,62,105,62,105,63,105,63,105,63,105,63,105,63,105,63,105,63,105,63,105,63,105,63,106,63,106,63,106,64,106,64,106,64,107,65,107,65,107,65,108,65,108,65,108,65,108,65,109,65,110,64,110,65,110,65,110,65,110,65,110,65,110,65,110,65,110,65,110,65,110,65,110,65,110,65,110,65,110,65,110,66,110,66,110,66,110,66,110,66,111,66,111,66,111,66,111,66,111,66,111,66,111,66,111,66,111,66,111,67,111,67,111,67,111,67,111,67,111,68,111,68,111,68,111,68,111,68,111,70,111,70,111,70,111,70,111,70,111,71,111,71,111,71,111,71,111,71,111,71,111,71,112,71,112,71,112,71,112,70,113,70,113,70,113,70,113,70,113,70,114,71,114,71,114,71,119,74,119,73,120,72,120,72,120,72,120,72,120,72,120,72,121,72,121,72,121,72,121,72,121,72,121,72,121,72,121,72,121,72,121,72,121,72,121,72,121,72,121,72,121,72,121,72,121,72,122,72,122,72,122,72,122,72,122,72,122,72,122,72,122,72,122,72,122,72,122,72,123,72,123,72,123,72},
{162,72,162,71,162,71,162,71,162,71,162,71,162,71,162,71,162,71,162,71,163,71,163,71,163,71,163,71,163,71,163,71,163,71,163,71,163,71,163,71,163,71,164,71,164,71,164,70,164,70,164,70,164,70,164,70,164,70,164,70,164,70,165,70,165,70,165,70,165,70,165,70,165,70,165,69,166,69,166,69,166,69,166,68,166,68,166,68,166,68,165,67,165,67,165,67,165,67,166,67,166,67,166,66,166,66,167,66,167,65,168,64,168,64,168,64,168,64,167,64,167,64,167,63,167,63,167,63,166,63,166,63,166,63,167,62,167,62,167,61,168,61,168,61,168,60,169,60,169,59,168,59,168,59,167,59,167,59,166,58,166,58,165,57,165,57,165,56,164,56,164,55,164,55,164,54,164,54,164,53,164,53,164,53,163,53,163,54,163,54,162,54,162,54,161,54,161,54,160,54,159,53,159,54,159,54,158,54,158,54,157,55,156,55,156,55,155,55,154,55,152,54,151,54,150,54,150,54,149,54,147,53,146,53,146,53,146,52,146,52,146,52,145,52,145,51,144,51,144,51,144,52,144,52,144,52,143,52,143,52,143,53,143,53,142,53,142,53,142,53,142,53,142,53,142,54,141,54,141,54,141,54,140,54,140,54,140,53,139,53,139,53,139,53,138,53,138,53,138,53,137,53,137,53,137,54,137,54,137,54,137,55,137,55,137,55,137,55,137,56,137,56,137,56,137,56,137,56,137,56,137,57,137,57,137,57,138,57,138,57,138,58,138,58,138,58,138,58,138,58,139,58,139,58,140,58,140,58,140,58,140,59,140,59,140,59,141,60,141,60,142,60,142,60,142,61,142,61,142,61,141,62,141,62,141,63,141,63,141,63,141,63,140,63,140,63,140,63,140,63,140,63,140,63,140,63,140,64,139,64,139,64,139,64,139,64,139,64,139,64,139,65,139,65,139,65,139,65,139,65,139,65,140,65,140,65,140,65,140,65,140,65,141,65,141,65,141,65,141,65,141,64,142,64,142,64,142,64,142,64,142,64,142,64,142,63,143,63,143,63,143,63,143,63,143,63,143,63,144,63,144,63,144,62,144,62,144,62,144,62,144,62,144,62,144,62,145,62,145,62,145,62,145,62,145,62,145,62,146,62,146,62,146,62,146,62,146,62,146,62,146,62,147,62,147,62,147,62,147,62,147,62,147,62,148,62,148,62,148,62,149,62,149,62,149,63,149,63,150,63,150,63,150,63,150,63,150,63,150,63,151,63,151,63,151,64,151,63,151,63,151,63,151,63,151,64,152,64,152,64,153,64,153,65,153,65,153,65,153,65,154,65,154,64,154,64,154,65,154,65,154,65,154,65,154,65,154,65,154,65,154,65,154,65,154,65,155,65,155,66,155,66,155,66,155,66,155,66,155,66,156,66,156,66,156,66,156,66,156,66,156,66,156,66,156,66,156,66,156,67,156,67,156,67,156,67,156,67,157,67,157,67,157,67,157,67,157,68,157,68,157,68,157,69,157,69,157,69,158,69,158,69,158,69,158,69,159,69,159,69,159,69,159,69,159,69,159,69,159,70,159,70,160,70,160,70,160,70,160,70,160,70,160,70,160,70,160,70,160,70,160,70,161,70,161,70,161,70,161,70,161,70,161,70,161,70,161,70,161,70,161,70,161,71,161,71,161,71,162,71,162,71,161,71,161,71,161,72,162,72,162,72},
{137,72,139,73,139,74,139,74,139,75,139,75,139,75,139,75,139,75,139,75,139,75,139,75,139,76,139,76,139,76,139,76,139,76,139,77,139,77,139,77,139,77,140,78,140,78,140,78,140,78,140,78,140,78,140,78,141,79,141,79,141,79,141,79,141,79,142,79,142,79,143,79,143,79,143,79,144,79,144,80,144,80,144,80,145,80,145,80,145,80,145,81,145,82,145,82,145,82,145,82,145,82,146,83,146,83,146,83,146,83,146,83,146,84,146,84,147,84,147,84,147,85,147,85,148,85,148,85,148,85,148,85,149,86,149,86,149,86,149,86,149,86,150,86,150,87,150,87,151,87,151,87,151,86,151,86,151,86,151,85,151,85,151,85,151,85,151,85,151,84,150,84,150,84,150,83,150,83,149,83,149,83,149,82,149,82,149,82,149,82,149,81,149,81,149,81,150,81,150,81,150,80,150,80,150,80,151,80,151,80,151,80,151,80,151,79,151,79,152,79,152,79,152,79,152,79,152,79,152,78,152,78,152,78,152,78,152,78,153,78,153,78,153,78,153,78,153,78,153,78,153,78,153,77,153,77,153,77,154,77,154,77,154,77,154,77,154,77,155,76,155,76,155,76,155,76,155,76,155,76,155,76,156,76,156,76,156,75,156,75,157,75,157,75,157,75,157,74,157,74,157,74,158,74,158,74,158,73,158,73,158,73,158,73,159,73,162,72,162,72,162,72,162,72,162,72,161,72,161,71,161,71,162,71,162,71,161,71,161,71,161,71,161,70,161,70,161,70,161,70,161,70,161,70,161,70,161,70,161,70,161,70,160,70,160,70,160,70,160,70,160,70,160,70,160,70,160,70,160,70,160,70,159,70,159,70,159,69,159,69,159,69,159,69,159,69,159,69,158,69,158,69,158,69,158,69,157,69,157,69,157,69,157,68,157,68,157,68,157,67,157,67,157,67,157,67,156,67,156,67,156,67,156,67,156,67,156,66,156,66,156,66,156,66,156,66,156,66,156,66,156,66,156,66,155,66,155,66,155,66,155,66,155,66,155,66,155,65,154,65,154,65,154,65,154,65,154,65,154,65,154,65,154,65,154,65,154,65,154,64,154,64,154,65,153,65,153,65,153,65,153,65,153,64,152,64,152,64,151,64,151,63,151,63,151,63,151,63,151,64,151,63,151,63,150,63,150,63,150,63,150,63,150,63,150,63,149,63,149,63,149,62,149,62,148,62,148,62,148,62,147,62,147,62,147,62,147,62,147,62,147,62,146,62,146,62,146,62,146,62,146,62,146,62,146,62,145,62,145,62,145,62,145,62,145,62,145,62,144,62,144,62,144,62,144,62,144,62,144,62,144,62,144,63,144,63,143,63,143,63,143,63,143,63,143,63,143,63,142,63,142,64,142,64,142,64,142,64,142,64,142,64,141,64,141,65,141,65,141,65,141,65,140,65,140,65,140,65,140,65,140,65,139,65,139,65,139,65,139,65,139,65,139,65,139,65,139,66,139,66,139,66,139,66,138,66,138,66,138,67,138,67,138,67,138,67,138,67,138,67,138,67,138,67,138,68,138,68,137,68,137,68,137,68,137,68,137,68,138,68,138,68,138,69,138,69,138,69,138,69,138,70,138,70,138,70,138,70,137,70,137,72,137,72},
{151,88,152,89,152,89,152,89,152,89,152,90,152,90,152,90,152,91,152,91,152,91,152,91,152,92,152,92,152,92,152,92,152,93,152,93,152,93,152,93,152,93,153,94,153,94,153,94,153,94,154,94,154,95,154,95,154,95,154,95,154,95,154,95,155,95,155,96,155,96,155,96,155,96,156,96,156,97,156,97,156,97,157,97,157,97,159,98,160,98,161,98,162,99,163,99,164,100,165,100,166,100,166,101,167,99,167,99,168,99,168,98,169,98,169,99,170,99,171,99,171,99,172,99,172,99,172,99,172,99,172,99,174,98,174,98,175,97,176,97,176,97,176,97,177,96,177,97,177,96,177,96,177,96,177,96,177,96,177,95,177,94,177,93,177,92,177,92,177,92,177,91,177,91,178,91,178,90,179,90,179,90,179,89,179,89,179,89,179,88,180,88,180,88,180,87,180,87,179,87,179,86,179,86,179,85,180,84,180,84,180,84,180,83,180,83,180,83,180,82,180,82,180,82,180,81,180,81,179,81,179,81,178,81,178,81,178,81,178,81,178,81,177,81,177,81,177,81,176,82,176,82,175,82,175,82,175,83,174,83,174,83,174,83,173,83,173,84,173,84,173,84,172,84,172,84,172,84,172,85,171,85,171,85,171,85,170,85,170,85,169,85,169,85,169,85,168,85,168,86,167,86,167,86,166,86,166,86,165,86,165,86,164,86,164,86,164,86,163,86,163,86,162,86,162,86,161,86,160,86,160,86,159,86,158,86,158,86,158,86,157,86,157,86,156,87,155,87,155,87,154,87,154,87,154,87,153,88,152,88,152,88,151,88,151,88},
{177,97,178,97,178,97,179,97,180,97,180,97,180,97,181,97,181,97,181,97,183,97,184,97,184,97,185,97,185,97,185,96,186,96,186,96,187,96,187,96,187,96,187,96,187,96,187,96,188,96,188,96,188,96,188,96,188,95,188,95,188,96,188,96,188,96,189,96,190,96,190,96,191,96,192,96,192,96,192,96,192,96,193,95,193,95,193,95,194,95,194,95,194,95,195,95,195,95,195,95,195,96,195,96,195,96,195,96,195,96,195,96,195,96,197,96,197,95,197,95,197,95,197,95,197,95,197,95,197,94,197,94,197,94,197,94,197,94,197,94,197,93,197,93,197,93,197,93,197,93,197,92,197,92,197,92,197,92,197,91,196,91,196,90,196,90,195,90,195,89,195,89,195,89,195,88,195,88,195,88,195,87,195,87,195,87,195,86,195,86,196,85,196,85,196,85,196,84,197,84,197,83,197,83,197,82,198,82,198,82,198,81,198,81,199,81,199,81,199,81,200,81,200,81,200,81,200,81,201,82,201,82,201,82,202,82,202,83,202,83,203,83,203,83,203,83,203,83,203,82,203,82,203,82,203,82,203,82,203,82,203,81,204,81,204,81,204,81,204,81,203,81,203,81,203,81,203,81,202,81,202,81,201,80,201,80,201,80,200,79,200,79,199,79,199,78,198,77,198,77,197,77,197,76,197,76,197,76,196,75,196,75,197,75,197,75,197,74,196,74,196,74,196,74,195,74,195,74,195,74,195,73,195,73,195,73,194,73,194,72,194,72,194,72,194,73,193,72,193,72,193,72,192,72,192,71,191,71,191,70,190,70,190,69,189,68,188,68,188,67,187,67,187,68,185,68,183,68,183,68,182,68,181,67,180,67,180,66,179,66,179,65,178,65,178,64,177,64,177,64,177,64,176,63,175,63,175,63,174,63,174,62,174,62,173,62,173,62,173,62,172,62,172,61,171,61,171,61,170,60,170,60,170,60,169,60,169,60,169,60,168,60,168,61,168,61,167,61,167,62,167,62,166,63,166,63,166,63,167,63,167,63,167,63,167,64,167,64,168,64,168,64,168,64,168,64,167,65,167,66,166,66,166,66,166,67,166,67,165,67,165,67,165,67,165,67,166,68,166,68,166,68,166,68,166,69,166,69,166,69,165,69,165,70,165,70,165,70,165,70,165,70,165,70,164,70,164,70,164,70,164,70,164,70,164,70,164,70,164,70,164,71,164,71,163,71,163,71,163,71,163,71,163,71,163,71,163,71,163,71,163,71,163,71,163,71,162,71,162,71,162,71,162,71,162,71,162,71,162,71,162,71,162,71,162,72,161,72,162,72,162,72,162,72,162,72,162,72,159,73,158,73,158,73,158,73,158,73,158,74,158,74,157,74,157,74,157,74,157,75,157,75,157,75,156,75,156,75,156,76,156,76,155,76,155,76,155,76,155,76,155,76,155,76,155,76,154,77,154,77,154,77,154,77,154,77,153,77,153,77,153,77,153,78,153,78,153,78,153,78,153,78,153,78,153,78,152,78,152,78,152,78,152,78,152,78,152,79,152,79,152,79,152,79,152,79,151,79,151,79,151,80,151,80,151,80,151,80,150,80,150,80,150,80,150,81,150,81,149,81,149,81,149,81,149,82,149,82,149,82,149,82,149,83,149,83,150,83,150,83,150,84,150,84,151,84,151,85,151,85,151,85,151,85,151,85,151,86,151,86,151,86,151,87,151,87,151,88,152,88,152,88,153,88,154,87,154,87,154,87,155,87,155,87,156,87,157,86,157,86,158,86,158,86,158,86,159,86,160,86,160,86,161,86,162,86,162,86,163,86,163,86,164,86,164,86,164,86,165,86,165,86,166,86,166,86,167,86,167,86,168,86,168,85,169,85,169,85,169,85,170,85,170,85,171,85,171,85,171,85,172,85,172,84,172,84,172,84,173,84,173,84,173,84,173,83,174,83,174,83,174,83,175,83,175,82,175,82,176,82,176,82,177,81,177,81,177,81,178,81,178,81,178,81,178,81,178,81,179,81,179,81,180,81,180,81,180,82,180,82,180,82,180,83,180,83,180,83,180,84,180,84,180,84,179,85,179,86,179,86,179,87,180,87,180,87,180,88,180,88,179,88,179,89,179,89,179,89,179,90,179,90,178,90,178,91,177,91,177,91,177,92,177,92,177,92,177,93,177,94,177,95,177,96,177,96,177,96,177,96,177,96,177,97,177,97,177,97},
{208,82,208,82,208,82,208,82,208,82,208,82,208,82,208,82,208,82,208,82,208,82,207,82,207,82,207,82,207,82,207,82,206,82,206,82,206,82,206,82,206,82,206,82,206,82,206,82,206,82,205,82,205,82,205,82,205,82,205,82,204,82,204,82,204,82,204,82,204,82,203,82,203,82,203,82,203,82,203,82,203,82,203,82,203,83,203,83,203,83,203,83,202,83,202,83,202,82,201,82,201,82,201,82,200,81,200,81,200,81,200,81,199,81,199,81,199,81,198,81,198,81,198,82,198,82,197,82,197,83,197,83,197,84,196,84,196,85,196,85,196,85,195,86,195,86,195,87,195,87,195,87,195,88,195,88,195,88,195,89,195,89,195,89,195,90,196,90,196,90,196,91,197,91,197,92,197,92,197,92,197,92,197,93,197,93,197,93,197,93,197,93,197,94,197,94,197,94,197,94,197,94,197,94,197,95,197,95,197,95,197,95,197,95,197,95,197,96,197,96,197,96,197,97,197,97,197,97,197,97,197,98,198,98,198,98,198,98,198,99,198,99,199,99,199,99,199,99,200,99,200,99,200,99,201,99,202,99,202,99,202,98,202,97,202,97,202,96,202,96,202,95,203,95,203,95,203,95,203,95,203,95,203,95,203,95,204,95,204,95,204,95,204,94,205,94,205,94,205,94,205,94,205,94,206,94,206,94,207,94,207,94,207,94,207,94,207,94,207,94,207,93,207,93,207,93,207,93,207,93,207,93,207,93,207,93,207,92,207,92,207,92,207,92,207,92,207,92,207,91,208,91,208,90,208,90,208,90,208,90,208,89,208,89,208,89,208,89,208,88,208,88,208,88,208,88,208,87,208,87,208,87,208,87,208,87,208,87,208,87,208,86,208,86,208,86,209,86,209,86,209,86,209,86,209,86,209,86,209,86,209,86,209,86,209,86,209,86,209,86,209,86,209,85,209,85,208,82,208,82},
{198,100,198,98,197,98,197,97,197,97,197,97,197,97,197,96,197,96,197,96,195,96,195,96,195,96,195,96,195,96,195,96,195,96,195,95,195,95,195,95,194,95,194,95,194,95,193,95,193,95,193,95,192,96,192,96,192,96,192,96,191,96,190,96,190,96,189,96,188,96,188,96,188,96,188,95,188,95,188,96,188,96,188,96,188,96,187,96,187,96,187,96,187,96,187,96,187,96,186,96,186,96,185,96,185,97,185,97,184,97,184,97,183,97,181,97,181,97,181,97,180,97,180,97,180,97,179,97,178,97,178,97,177,97,177,96,176,97,176,97,176,97,175,97,174,98,174,98,172,99,172,99,172,99,172,99,172,99,171,99,171,99,170,99,169,99,169,98,168,98,168,99,167,99,167,99,166,101,166,101,167,101,167,102,167,102,167,103,167,103,167,104,167,105,167,106,167,107,168,108,168,109,168,110,169,111,169,112,169,112,170,113,170,114,171,114,171,114,171,114,172,115,172,115,172,115,171,115,171,114,170,114,170,114,169,114,169,114,168,114,167,114,166,114,166,115,165,115,163,116,161,116,160,117,160,117,161,119,161,119,161,119,161,119,161,120,161,120,161,120,161,120,161,120,161,120,160,120,160,120,160,120,161,120,161,120,161,120,162,120,162,120,163,121,163,121,163,121,163,121,164,121,164,121,164,121,164,121,164,121,164,121,164,121,164,121,165,121,165,121,165,121,165,121,165,121,165,121,165,121,165,121,165,121,166,121,166,121,166,121,166,120,166,120,166,120,167,121,167,121,167,121,167,121,167,121,168,121,168,121,168,121,168,121,169,121,169,122,169,122,169,122,169,122,169,122,169,122,169,122,170,122,170,123,170,123,170,123,170,123,170,123,170,123,170,123,170,123,170,123,170,123,170,123,170,123,170,123,170,122,171,122,171,122,171,122,171,121,171,121,171,121,171,120,172,120,172,120,172,119,172,119,172,119,172,119,172,119,172,119,172,118,172,118,172,118,172,118,172,118,172,118,173,118,173,118,173,118,173,117,173,117,173,117,173,118,174,118,174,118,174,118,174,118,175,118,175,118,175,119,175,119,175,119,175,119,175,119,175,119,176,119,176,120,176,120,176,120,176,120,176,120,176,121,176,121,177,121,177,121,177,121,177,121,177,122,177,122,177,122,177,122,177,122,177,122,177,122,178,122,178,122,178,122,178,122,178,122,178,123,179,123,179,123,179,123,180,123,180,123,180,123,180,122,181,122,181,122,183,122,185,122,186,122,187,122,188,121,189,121,189,121,190,121,190,121,190,121,190,122,190,121,190,121,190,121,190,120,190,120,190,120,190,119,190,119,190,118,191,118,192,117,193,116,194,116,195,115,196,114,196,114,196,113,196,113,196,113,196,112,195,110,195,110,195,110,195,109,195,109,195,108,194,108,194,108,194,108,194,108,194,108,194,107,194,107,194,107,194,107,195,107,195,106,195,106,195,106,195,106,195,106,195,106,195,105,195,105,195,105,195,105,195,104,195,104,195,104,195,104,196,104,196,104,196,104,196,104,196,104,196,103,196,103,197,103,197,103,197,103,197,102,197,102,198,102,198,102,198,102,198,101,198,101,198,101,198,101,198,101,198,100,198,100,198,100},
{202,99,202,99,202,99,201,99,200,99,200,99,200,99,199,99,199,99,199,99,198,99,198,99,198,98,198,98,198,98,198,100,198,100,198,101,198,101,198,101,198,101,198,101,198,102,198,102,198,102,197,102,197,102,197,103,197,103,197,103,196,103,196,103,196,104,196,104,196,104,196,104,196,104,195,104,195,104,195,104,195,104,195,105,195,105,195,105,195,105,195,106,195,106,195,106,195,106,195,106,195,106,195,107,194,107,194,107,194,107,194,107,194,108,194,108,194,108,194,108,194,108,195,108,195,109,195,109,195,110,195,110,195,110,196,112,196,113,196,113,196,113,196,114,196,114,195,115,194,116,193,116,192,117,191,118,190,118,190,119,190,119,190,120,190,120,190,120,190,121,190,121,190,121,190,122,191,121,191,121,192,122,193,122,193,122,194,122,195,122,197,122,198,122,199,122,200,121,201,121,202,120,203,119,204,119,204,118,205,118,205,118,205,118,205,118,206,118,207,118,207,118,208,118,208,117,208,117,208,117,209,117,209,117,209,118,210,118,210,118,211,119,211,119,211,119,211,120,211,120,212,120,212,120,212,120,212,119,212,119,212,119,212,118,212,118,213,117,213,117,213,117,213,117,213,117,213,117,213,117,213,116,213,116,213,116,213,116,213,116,213,116,213,115,213,115,213,114,213,114,213,113,213,112,213,112,213,112,213,111,213,111,212,111,212,111,211,109,211,109,210,109,210,109,210,108,210,108,210,108,210,108,210,108,209,107,209,107,209,107,209,107,209,106,210,106,210,106,209,106,209,106,209,105,208,104,207,103,207,102,206,101,206,101,206,100,205,100,205,100,204,100,204,99,204,99,203,99,202,99,202,99},
{159,117,160,117,161,116,163,116,165,115,166,115,166,114,167,114,168,114,169,114,169,114,170,114,170,114,171,114,171,115,172,115,172,115,172,115,171,114,171,114,171,114,170,114,170,113,169,112,169,112,169,111,168,110,168,109,168,108,167,107,167,106,167,105,167,104,167,103,167,103,167,102,167,102,167,101,166,101,166,101,166,100,165,100,164,100,163,99,162,99,161,98,160,98,159,98,157,97,157,97,156,97,156,97,156,97,156,96,155,96,155,96,155,96,155,96,155,95,154,95,154,95,154,95,154,95,154,95,154,95,154,94,153,94,153,94,153,94,153,94,152,93,152,93,152,93,152,93,152,93,152,92,152,92,152,92,152,92,152,91,152,91,152,91,152,91,152,90,152,90,152,90,152,89,152,89,152,89,152,89,151,88,151,87,150,87,150,87,150,86,149,86,149,86,149,86,149,86,149,86,148,85,148,85,148,85,148,85,147,85,147,85,147,84,147,84,146,84,146,84,146,83,146,83,146,83,146,83,146,83,145,82,145,82,145,82,145,82,145,82,145,81,145,80,145,80,145,80,144,80,144,80,144,80,144,79,143,79,143,79,143,79,142,79,142,79,141,79,141,79,141,79,141,79,141,79,140,78,140,78,140,78,140,78,140,78,140,78,140,78,139,77,139,77,139,77,139,77,139,76,139,76,139,76,139,76,139,76,139,75,139,75,139,75,139,75,139,75,139,75,139,75,139,75,139,74,139,74,139,73,137,72,137,71,137,71,137,71,137,71,137,71,137,71,137,71,136,70,136,70,136,70,136,70,136,70,136,70,136,70,136,70,135,70,135,70,135,70,135,70,135,70,135,70,135,69,135,69,134,70,134,70,134,70,134,70,134,70,134,70,134,70,133,70,133,70,133,70,133,70,133,70,133,70,132,70,132,70,132,69,132,69,132,69,132,69,132,69,132,69,131,69,131,69,131,68,130,68,130,68,130,68,130,68,130,68,129,68,129,68,129,68,129,68,129,68,128,68,128,68,128,68,128,68,128,68,128,68,127,68,127,68,127,68,127,68,127,68,127,68,126,68,126,68,126,68,126,68,126,68,125,67,125,67,125,67,125,67,125,67,124,67,124,67,124,67,124,67,124,67,122,66,122,66,122,66,122,66,122,66,122,67,122,67,122,68,122,68,122,68,122,69,122,69,123,70,123,70,123,70,123,71,123,71,123,72,123,72,123,73,123,73,123,74,123,74,123,74,123,74,123,75,123,75,123,75,123,75,123,75,123,75,123,76,123,76,123,76,123,76,123,76,123,76,123,76,123,77,123,77,123,77,123,77,123,77,123,77,123,78,123,78,123,78,123,78,123,78,123,78,123,78,123,78,123,79,123,79,123,79,123,79,123,79,123,79,123,79,123,80,123,80,123,80,123,80,123,80,123,80,123,80,123,81,123,81,123,81,123,81,123,81,123,81,123,82,123,82,123,82,123,82,123,82,123,82,123,83,123,83,122,83,122,83,122,83,122,83,122,83,122,84,122,84,122,84,122,84,122,84,122,84,122,84,122,84,121,84,121,84,121,84,121,84,121,84,121,85,121,85,121,85,120,85,120,85,120,85,120,85,120,85,120,85,120,85,119,85,119,85,119,85,119,85,119,86,118,86,118,86,118,86,118,86,117,86,116,87,116,89,116,90,117,90,117,90,117,90,117,90,117,90,117,91,116,92,114,97,114,97,114,98,114,98,114,98,114,99,114,99,114,100,114,101,114,101,114,101,114,102,114,103,115,104,115,104,115,105,115,105,115,106,115,106,115,107,115,107,115,107,116,108,115,108,115,108,115,109,115,109,115,109,114,109,114,109,114,109,114,110,113,110,112,110,111,110,111,110,111,110,111,110,110,110,110,111,109,112,109,113,107,114,107,114,107,114,107,114,107,114,107,115,107,115,107,115,107,115,107,115,107,115,108,116,108,116,108,116,108,116,108,116,108,116,108,116,108,116,108,117,109,117,109,117,109,117,109,116,109,116,110,116,110,115,110,115,110,115,110,115,110,115,111,115,111,115,111,115,111,115,111,115,111,115,112,115,113,114,113,114,114,114,114,114,115,114,115,113,116,113,116,113,116,113,116,112,118,110,118,110,119,110,119,109,120,109,121,109,122,109,122,109,122,108,123,108,123,108,123,108,124,108,124,108,124,108,125,108,125,108,126,107,126,107,126,107,127,107,127,107,127,107,127,107,128,107,128,107,129,107,130,107,130,107,130,107,130,107,131,107,131,107,131,107,131,107,132,107,132,107,132,107,132,107,133,106,134,106,134,106,135,106,135,106,135,106,136,106,136,107,137,107,137,107,137,107,137,107,138,108,138,108,139,108,139,108,139,109,139,109,140,109,140,109,140,110,140,110,140,110,140,110,140,111,141,113,141,113,141,113,141,114,142,114,142,115,143,116,144,117,144,118,145,118,145,119,146,119,146,120,147,121,148,122,149,123,149,123,149,124,149,123,150,123,150,123,150,122,150,122,150,122,150,122,150,121,150,121,151,121,151,120,151,120,151,120,152,120,152,119,152,119,153,119,154,119,154,119,155,118,156,118,157,118,157,118,158,117,159,117,159,117},
{74,111,74,110,74,110,75,110,75,110,75,110,75,110,75,110,76,110,76,110,76,109,75,109,75,107,75,107,75,107,75,107,75,107,75,107,74,107,75,106,75,105,75,105,75,104,75,104,76,103,78,102,78,103,79,103,79,103,79,104,80,104,80,104,80,104,80,105,81,105,81,103,81,102,81,102,81,101,82,101,82,101,82,100,82,100,82,100,82,100,81,99,80,100,80,100,80,100,80,100,79,100,78,100,78,100,78,100,77,100,77,100,77,100,77,100,76,100,76,100,76,100,76,100,75,100,75,100,75,100,75,100,74,99,74,99,74,99,74,99,74,97,74,97,74,96,74,96,74,96,74,96,74,96,73,97,72,97,72,97,72,97,72,97,72,97,71,96,71,96,71,96,71,96,71,96,70,96,70,95,69,95,69,95,68,95,68,95,68,95,68,95,69,96,69,96,69,96,69,97,69,97,69,97,69,97,69,98,69,98,69,98,69,98,69,98,69,99,69,99,69,99,69,99,69,99,69,100,68,100,68,100,68,101,68,101,67,101,67,101,67,101,67,101,68,102,68,102,68,102,68,103,68,103,68,103,68,103,68,103,69,103,69,103,69,103,69,103,69,103,69,104,69,104,69,104,69,104,69,104,69,105,70,105,70,105,71,106,71,107,71,107,72,107,72,107,72,107,72,107,73,108,73,108,73,108,73,109,73,109,73,109,73,109,73,109,73,109,73,110,73,110,73,110,74,111,74,111},
{63,85,63,85,63,85,64,85,64,86,64,86,64,86,65,86,65,87,65,87,65,87,66,87,66,87,66,87,67,86,67,86,69,86,71,87,72,88,74,88,76,88,78,89,79,89,80,89,81,88,81,88,81,87,81,87,81,87,82,86,81,86,81,86,81,86,81,85,81,85,80,85,80,85,80,85,80,84,80,84,80,84,80,83,80,83,79,83,79,82,79,82,79,82,79,81,79,81,79,81,79,80,79,80,79,80,79,79,79,79,79,79,79,79,79,79,79,78,79,78,79,78,78,78,76,78,75,78,74,77,73,76,71,74,69,71,67,71,67,71,67,72,67,72,67,72,67,72,67,72,67,73,67,73,67,75,67,82,66,83,63,85,63,85},
{81,105,80,105,81,106,81,106,79,107,80,107,80,108,82,108,82,109,82,109,83,110,84,109,84,109,84,109,84,110,85,110,85,110,85,110,86,111,86,111,86,111,87,110,88,110,88,110,89,110,90,109,91,108,91,108,91,108,91,107,91,107,91,106,90,104,90,102,90,102,89,102,89,101,89,101,88,100,88,100,87,100,87,100,86,100,86,100,85,100,85,99,84,99,84,99,83,99,83,100,82,100,82,100,82,100,82,101,82,101,81,101,81,102,81,102,81,103,81,105,81,105},
{77,113,77,113,77,113,78,113,78,113,78,113,78,113,78,113,78,114,79,114,79,114,79,114,79,114,79,114,79,114,79,114,79,115,79,115,79,115,80,115,80,115,80,115,80,116,80,116,80,117,81,117,81,118,81,118,81,118,82,118,82,118,82,117,82,117,82,117,83,118,83,118,83,118,83,118,83,118,83,119,83,119,83,119,83,119,83,119,83,119,84,118,84,118,85,118,85,119,85,118,86,118,86,118,86,118,87,118,87,118,87,118,87,118,88,118,88,117,88,117,88,117,88,117,88,115,88,115,88,115,88,112,86,111,86,111,86,111,86,111,85,110,85,110,85,110,84,110,84,109,84,109,84,109,83,110,82,109,82,109,82,108,80,108,80,107,79,107,81,106,81,106,80,105,80,104,80,104,80,104,79,104,79,103,79,103,78,103,78,102,76,103,75,104,75,104,75,105,75,105,75,106,74,107,75,107,75,107,75,107,75,107,75,107,75,107,75,109,76,109,76,110,76,110,75,110,75,110,75,110,75,110,75,110,74,110,74,110,74,111,74,111,74,111,74,111,75,112,75,112,75,112,75,112,74,112,74,112,74,112,74,113,74,113,74,113,74,112,74,112,75,112,75,112,76,113,76,113,76,113,77,114,77,113,77,113},
{88,134,88,134,88,134,88,133,89,132,89,132,90,131,90,131,91,131,91,131,92,130,92,130,92,130,92,130,92,130,92,130,92,130,92,130,92,129,90,128,90,127,90,127,90,127,89,127,89,127,88,126,88,126,88,126,87,125,87,125,87,124,86,123,85,123,85,122,85,122,85,122,85,122,84,121,83,120,83,120,83,120,83,119,83,119,83,119,83,119,83,119,83,119,83,118,83,118,83,118,83,118,83,118,82,117,82,117,82,117,82,118,82,118,81,118,81,118,81,118,81,117,80,117,80,116,80,116,80,115,80,115,80,115,79,115,79,115,79,115,79,114,79,114,79,114,79,114,79,114,79,114,79,114,78,114,78,113,78,113,78,113,78,113,78,113,77,113,77,113,77,113,77,114,77,114,77,114,77,114,78,114,78,114,78,114,78,115,78,115,79,116,79,116,79,116,79,117,79,117,79,117,80,117,80,117,80,118,80,119,79,119,79,120,79,120,79,120,79,120,79,120,79,120,79,120,79,120,79,120,79,120,80,121,80,121,80,121,80,122,80,122,80,121,80,121,80,121,81,121,81,121,81,122,81,122,81,122,81,122,80,123,81,123,81,123,81,123,81,123,82,123,82,123,82,123,81,124,82,124,82,124,83,126,83,126,83,125,84,125,83,125,84,125,84,125,84,125,84,125,84,125,84,125,84,125,84,125,84,125,84,126,84,126,84,126,84,126,84,126,84,126,84,126,84,126,84,127,83,127,83,128,83,128,83,128,82,128,82,128,84,130,86,132,87,133,87,133,88,134,88,134,88,134},
{87,118,87,118,86,118,86,118,86,118,85,118,85,119,85,118,84,118,84,118,83,119,83,120,83,120,83,120,84,121,85,122,85,122,85,122,85,122,85,123,86,123,87,124,87,125,87,125,88,126,88,126,88,126,89,127,89,127,90,127,90,127,90,127,91,127,92,128,93,128,95,128,96,127,96,127,96,126,96,125,96,125,96,124,96,124,96,124,96,124,96,123,96,123,96,123,96,123,96,123,96,122,96,122,95,122,95,122,95,122,94,122,94,122,90,120,90,120,88,119,87,118,87,118,87,118,87,118},
{97,124,97,123,97,123,97,123,97,122,98,122,97,122,97,122,97,122,97,122,97,121,97,121,97,121,97,121,97,121,97,121,97,121,96,120,96,120,96,120,96,120,96,120,97,119,97,119,97,118,98,118,98,118,98,117,98,117,98,117,97,117,97,116,97,116,95,115,95,115,95,114,94,114,94,114,94,114,94,114,92,113,90,112,90,112,90,112,89,112,89,113,88,112,88,115,88,115,88,115,88,117,88,117,88,117,88,117,88,118,87,118,87,118,87,118,87,118,87,118,87,118,87,118,88,119,90,120,90,120,94,122,94,122,95,122,95,122,95,122,96,122,96,122,96,123,96,123,96,123,96,123,96,123,96,124,96,124,96,124,97,124,97,124},
{99,118,106,120,107,121,107,121,107,121,107,121,107,121,108,121,108,121,107,121,107,121,107,121,107,120,107,120,107,120,107,119,107,119,106,118,106,118,106,117,106,117,106,116,105,116,105,115,104,115,104,115,104,114,103,114,103,113,103,113,103,112,103,112,103,111,103,110,103,110,103,109,103,109,103,107,103,106,102,106,102,105,102,105,102,105,102,105,101,105,100,105,100,105,100,105,99,105,99,105,99,105,99,105,98,105,98,105,97,104,97,103,96,103,96,102,96,102,96,101,96,101,96,101,96,100,96,100,96,99,96,99,96,99,96,99,96,99,95,99,95,99,94,98,94,98,93,98,93,98,93,98,91,98,91,98,91,98,90,98,90,99,90,99,90,99,90,100,89,100,89,100,90,100,90,101,90,101,90,101,90,101,90,102,90,102,90,102,90,104,91,106,91,107,91,107,91,108,91,108,91,108,90,109,89,110,88,110,88,110,87,110,86,111,86,111,88,112,89,113,89,112,90,112,90,112,90,112,92,113,94,114,94,114,94,114,94,114,95,114,95,115,95,115,97,116,97,116,97,117,98,117,98,117,98,117,99,118,99,118},
{108,117,108,117,108,116,108,116,108,116,108,116,108,116,108,116,108,116,108,116,107,115,107,115,107,115,107,115,107,115,107,115,107,114,107,114,107,114,107,114,107,114,109,113,109,112,110,111,110,110,111,110,111,110,111,110,111,110,112,110,113,110,114,110,114,109,114,109,114,109,115,109,115,109,115,109,115,108,115,108,116,108,115,107,115,107,115,107,115,106,115,106,115,105,115,105,115,104,115,104,114,103,114,102,114,101,114,101,114,101,114,100,114,99,114,99,114,98,114,98,114,98,114,97,114,97,116,92,117,91,117,90,117,90,117,90,117,90,117,90,116,90,116,89,116,87,115,87,115,88,115,88,114,89,113,90,113,90,113,90,112,90,112,91,112,91,112,91,111,91,111,91,111,91,111,92,110,92,110,92,110,92,109,92,109,92,109,92,108,92,108,92,107,92,107,92,107,93,107,93,106,93,106,93,106,93,106,94,106,94,106,94,106,94,106,94,106,94,106,95,106,95,105,95,105,95,105,95,105,95,105,95,104,95,104,95,104,95,104,95,103,96,102,96,102,96,101,96,100,96,100,96,100,96,98,97,98,97,97,97,97,98,97,98,96,98,96,99,96,99,96,99,96,99,96,99,96,99,96,100,96,100,96,101,96,101,96,101,96,102,96,102,96,103,97,103,97,104,98,105,98,105,99,105,99,105,99,105,99,105,100,105,100,105,100,105,101,105,102,105,102,105,102,105,102,105,102,106,103,106,103,107,103,109,103,109,103,110,103,110,103,111,103,112,103,112,103,113,103,113,103,114,104,114,104,115,104,115,105,115,105,116,106,116,106,117,106,117,106,118,106,118,107,118,108,117,108,117},
{99,139,99,140,99,141,100,141,100,142,101,142,101,143,101,143,101,144,102,144,102,145,102,145,103,146,103,147,104,147,104,147,104,147,105,147,105,147,106,147,106,146,106,146,106,144,106,144,106,143,106,142,106,142,105,141,104,141,104,141,104,140,103,140,103,140,103,139,102,139,102,139,102,139,102,139,102,139,101,139,101,138,101,138,101,137,100,137,100,138,99,138,99,138,99,138,99,138,99,138,99,139,99,139,99,139,99,139,99,139},
{97,131,97,131,97,131,96,130,96,130,96,129,96,128,96,127,95,128,93,128,92,128,91,127,90,127,90,128,92,129,92,130,92,130,93,130,93,130,93,130,93,131,93,131,93,131,93,131,93,131,93,131,93,131,93,131,93,131,93,132,93,132,93,132,94,133,94,133,94,133,94,133,95,134,95,134,95,134,96,135,96,136,96,136,97,137,97,137,98,138,98,138,98,138,98,139,99,139,99,139,99,139,99,138,99,138,99,138,99,138,99,138,100,138,100,137,101,137,101,137,100,137,100,137,101,136,102,134,101,134,101,134,101,134,101,134,101,134,101,134,101,134,101,134,101,134,100,134,100,134,100,134,100,134,100,134,100,134,99,134,99,134,98,133,98,133,98,133,98,132,98,132,97,132,97,132,97,132,97,132,97,131,97,131,97,131,97,131},
{102,134,102,134,102,134,102,134,102,133,102,133,103,133,103,133,103,133,103,134,103,134,106,133,106,133,107,133,107,133,109,132,109,132,109,132,110,132,110,132,110,132,110,132,110,132,110,131,110,131,110,130,110,130,111,130,111,130,111,129,111,129,111,129,111,128,111,128,111,127,110,126,110,125,110,124,109,124,109,123,109,123,109,122,108,122,108,122,108,122,108,121,108,121,107,121,107,121,107,121,107,121,107,121,106,120,99,118,98,117,98,118,98,118,97,118,97,119,97,119,96,120,96,120,96,120,96,120,96,120,97,121,97,121,97,121,97,121,97,121,97,121,97,121,97,122,97,122,97,122,97,122,98,122,97,122,97,123,97,123,97,123,97,124,96,124,96,124,96,125,96,125,96,126,96,127,96,127,96,128,96,129,96,130,96,130,97,131,97,131,97,131,97,131,97,131,97,132,97,132,97,132,97,132,98,132,98,132,98,133,98,133,98,133,99,134,99,134,100,134,100,134,100,134,100,134,100,134,100,134,101,134,101,134,101,134,101,134,101,134,101,134,101,134,101,134,102,134,102,134,102,134},
{67,101,67,101,68,101,68,101,68,100,68,100,69,100,69,99,69,99,69,99,69,99,69,99,69,99,69,98,69,98,69,98,69,98,69,98,69,97,69,97,69,97,69,97,69,96,69,96,69,96,68,95,68,95,68,95,68,94,68,94,68,94,67,94,67,94,67,93,66,92,66,91,66,91,66,90,65,90,65,89,66,89,66,89,66,88,66,88,66,87,66,87,66,87,66,87,65,87,65,87,65,87,65,86,64,86,64,86,64,86,64,85,63,85,63,85,63,85,62,85,61,85,60,85,59,85,58,85,58,86,58,86,58,86,58,86,58,87,58,87,58,87,58,87,58,87,58,87,58,87,58,87,58,87,58,88,58,88,59,88,59,88,59,88,59,88,59,88,59,88,59,89,59,89,59,89,59,89,59,89,59,89,60,89,60,89,60,89,60,89,60,89,60,89,60,89,60,89,60,89,60,89,60,89,59,89,59,89,60,89,59,89,59,89,59,89,59,89,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,60,90,61,91,61,91,61,91,61,91,61,91,61,91,61,91,61,91,61,91,61,91,61,91,61,92,61,92,61,92,61,92,61,92,61,92,61,92,62,92,62,92,62,92,62,92,62,92,62,92,62,92,62,92,62,92,62,92,62,92,62,92,62,92,62,93,62,93,62,93,63,94,62,94,62,94,62,94,62,94,62,94,62,94,63,94,63,94,63,94,63,94,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,95,63,96,63,96,63,96,64,96,64,96,64,96,64,96,64,96,64,96,64,96,64,96,64,96,64,97,64,97,64,97,65,98,65,99,65,99,66,99,66,99,66,100,66,100,66,100,67,100,67,100,67,101,67,101,67,101},
{106,147,106,147,106,148,106,149,106,149,106,149,106,149,106,150,106,151,106,151,107,151,107,151,108,149,108,150,108,150,109,150,109,150,109,150,109,149,109,149,110,149,110,149,110,149,111,149,111,148,111,148,112,148,112,147,112,147,113,147,113,147,113,147,113,147,113,147,113,147,114,146,114,146,114,146,116,144,116,144,117,144,117,144,117,144,117,144,117,144,117,144,118,144,118,144,118,144,118,144,118,144,119,144,119,144,119,144,119,144,120,144,120,144,120,144,120,144,120,144,120,143,120,143,120,143,120,143,121,142,121,141,122,140,122,139,122,139,122,139,122,139,122,138,122,138,122,138,122,138,121,138,121,138,121,138,121,138,120,137,120,137,120,137,120,137,120,137,120,137,120,136,120,136,119,136,119,136,119,135,119,135,119,135,118,135,118,134,118,134,118,134,117,134,117,133,116,133,116,133,116,133,115,132,115,132,115,132,115,132,114,132,114,132,114,132,113,131,113,131,113,131,113,131,113,131,112,131,112,131,112,131,112,131,112,131,111,132,111,132,111,132,111,132,110,132,110,132,109,132,109,132,109,132,107,133,107,133,106,133,106,133,103,134,103,134,103,133,103,133,103,133,102,133,102,133,102,134,102,134,102,134,102,134,102,134,101,136,100,137,100,137,101,137,101,137,101,138,101,138,101,139,102,139,102,139,102,139,102,139,102,139,103,139,103,140,103,140,104,140,104,141,104,141,105,141,106,142,106,142,106,143,106,144,106,144,106,146,106,146,106,147,106,147,106,147},
{123,138,123,138,123,138,123,138,123,138,124,138,124,138,124,138,124,138,125,138,125,138,125,137,126,137,127,137,127,137,128,136,129,136,129,136,129,136,130,136,130,135,130,135,130,135,130,135,130,135,132,135,132,135,132,135,131,134,131,134,131,134,131,133,131,133,130,133,130,133,130,133,130,133,129,133,129,133,129,133,128,132,128,132,127,132,127,132,127,131,127,131,126,131,126,130,126,130,126,130,126,130,126,129,126,129,126,129,126,128,126,128,126,127,126,127,125,127,125,127,125,126,125,126,124,125,123,126,123,125,123,125,123,125,122,125,122,125,122,125,121,125,121,125,121,125,121,124,120,124,120,124,120,123,119,123,119,123,119,122,119,122,119,122,119,122,118,122,118,121,118,121,118,120,118,119,118,119,118,119,118,119,117,119,117,119,116,119,116,119,116,119,116,119,115,119,115,119,115,119,115,119,115,118,115,118,115,118,114,118,114,118,114,117,113,116,113,116,113,116,112,116,112,116,112,116,111,116,111,116,111,116,111,116,111,116,110,116,110,116,110,116,110,116,110,116,110,116,109,116,109,116,109,117,109,117,109,117,108,117,108,117,107,118,106,118,107,119,107,119,107,120,107,120,107,120,107,121,107,121,107,121,108,121,108,121,108,121,108,122,108,122,108,122,109,122,109,123,109,123,109,124,110,124,110,125,110,126,111,127,111,128,111,128,111,129,111,129,111,129,111,130,111,130,110,130,110,130,110,131,110,131,110,132,110,132,110,132,110,132,110,132,110,132,111,132,111,132,111,132,111,132,112,131,112,131,112,131,112,131,112,131,113,131,113,131,113,131,113,131,113,131,114,132,114,132,114,132,115,132,115,132,115,132,115,132,116,133,116,133,116,133,117,133,117,134,118,134,118,134,118,134,118,135,119,135,119,135,119,135,119,136,119,136,120,136,120,136,120,137,120,137,120,137,120,137,120,137,120,137,121,138,121,138,121,138,121,138,122,138,122,138,122,138,123,138,123,138},
{141,113,141,113,141,113,140,111,140,110,140,110,140,110,140,110,140,109,140,109,139,109,139,109,139,108,139,108,138,108,138,108,137,107,137,107,137,107,137,107,136,107,136,106,135,106,135,106,135,106,134,106,134,106,133,106,132,107,132,107,132,107,132,107,131,107,131,107,131,107,131,107,130,107,130,107,130,107,130,107,129,107,128,107,128,107,127,107,127,107,127,107,127,107,126,107,126,107,126,107,125,108,125,108,124,108,124,108,124,108,123,108,123,108,123,108,122,108,122,109,122,109,121,109,120,109,119,109,119,110,118,110,118,110,116,112,116,113,116,113,116,113,115,113,115,114,114,114,114,114,113,114,113,114,112,115,111,115,111,115,111,115,111,115,111,115,111,115,110,115,110,115,110,115,110,115,110,115,110,116,109,116,110,116,110,116,110,116,110,116,110,116,110,116,111,116,111,116,111,116,111,116,111,116,112,116,112,116,112,116,113,116,113,116,113,116,114,117,114,118,114,118,115,118,115,118,115,118,115,119,115,119,115,119,115,119,116,119,116,119,116,119,116,119,117,119,117,119,118,119,118,119,118,119,118,119,118,120,118,121,118,121,119,121,119,120,119,120,120,120,120,119,120,119,120,119,120,119,121,119,121,119,121,119,121,119,121,119,122,118,122,118,122,118,122,118,122,118,123,118,123,118,123,118,123,118,123,118,123,118,123,118,124,118,124,118,124,118,124,118,124,118,125,119,125,119,125,119,125,119,125,119,125,119,125,119,125,119,126,119,126,119,126,119,126,119,126,119,127,119,127,119,127,119,127,119,127,119,127,119,127,119,127,119,127,119,128,119,128,119,128,119,129,119,129,119,130,119,131,119,131,119,131,119,131,119,132,119,132,119,132,119,133,119,133,119,134,119,134,118,134,118,135,118,135,118,135,118,135,118,135,118,136,117,136,117,136,117,136,117,136,116,136,116,136,116,137,116,137,116,137,115,138,115,138,115,138,115,138,115,139,115,139,114,139,114,140,114,141,113,141,113},
{132,135,133,135,135,135,136,134,137,134,138,134,139,134,140,134,141,134,142,133,143,133,143,133,143,133,143,133,143,134,144,134,144,134,144,134,144,135,144,134,144,134,144,133,144,133,144,133,144,132,145,132,145,132,146,131,146,131,147,130,147,129,148,129,148,128,148,128,148,127,149,127,149,126,149,126,149,125,149,125,149,124,149,124,149,123,149,123,148,122,147,121,146,120,146,119,145,119,145,118,144,118,144,117,143,116,142,115,142,114,141,114,141,113,141,113,141,113,140,114,139,114,139,114,139,115,138,115,138,115,138,115,138,115,137,115,137,116,137,116,136,116,136,116,136,116,136,117,136,117,136,117,136,117,135,118,135,118,135,118,135,118,135,118,134,118,134,118,134,119,133,119,133,119,132,119,132,119,132,119,131,119,131,119,131,119,131,119,130,119,129,119,129,119,128,119,128,119,128,119,127,119,127,119,127,119,127,119,127,119,127,119,127,119,127,119,127,119,126,119,126,119,126,119,126,119,126,119,125,119,125,119,125,119,125,119,125,119,125,119,125,119,125,119,124,118,124,118,124,118,124,118,124,118,123,118,123,118,123,118,123,118,123,118,123,118,123,118,122,118,122,118,122,118,122,118,122,118,121,119,121,119,121,119,121,119,121,119,120,119,120,119,120,119,120,119,120,120,119,120,119,120,119,121,118,121,118,122,119,122,119,122,119,122,119,122,119,123,119,123,120,123,120,124,120,124,121,124,121,125,121,125,121,125,122,125,122,125,122,125,123,125,123,125,123,125,123,126,124,125,125,126,125,126,125,127,125,127,126,127,126,127,126,128,126,128,126,129,126,129,126,129,126,130,126,130,126,130,126,130,126,131,127,131,127,131,127,132,127,132,128,132,128,132,129,133,129,133,129,133,130,133,130,133,130,133,130,133,131,133,131,133,131,134,131,134,132,135,132,135},
{121,144,122,144,122,144,123,144,124,144,124,144,124,145,125,145,125,145,126,145,126,145,126,145,126,145,127,146,127,146,127,146,127,146,127,146,128,147,128,147,128,147,128,148,128,148,129,147,129,147,129,147,129,147,129,147,130,147,130,147,130,147,130,147,130,147,130,147,130,147,130,147,130,148,130,148,131,148,131,148,131,148,131,148,131,149,131,149,131,149,131,149,131,149,131,149,131,149,132,149,132,148,131,147,131,147,131,147,131,147,132,147,132,146,133,145,134,145,135,144,135,144,135,144,135,144,135,144,135,144,136,144,136,144,136,144,136,144,137,143,137,143,137,143,138,143,138,142,138,142,139,142,139,142,139,142,139,142,139,142,138,142,138,141,138,141,138,141,138,141,138,141,138,141,139,141,139,140,139,140,139,140,139,140,139,140,139,140,139,140,139,140,139,140,140,140,140,140,140,140,140,140,140,140,141,140,141,140,141,140,141,140,141,141,141,141,141,141,142,141,142,141,142,141,143,141,143,141,143,141,143,141,143,141,143,140,143,140,144,140,144,140,144,140,144,140,145,140,145,140,145,140,145,139,144,137,144,136,144,135,144,135,144,135,144,135,144,134,144,134,144,134,143,134,143,133,143,133,143,133,143,133,142,133,141,134,140,134,139,134,138,134,137,134,136,134,135,135,133,135,132,135,130,135,130,135,130,135,130,136,129,136,129,136,129,136,128,136,127,137,127,137,126,137,125,137,125,138,125,138,124,138,124,138,124,138,124,138,123,138,123,138,123,138,123,138,123,138,122,138,122,138,122,139,122,139,122,139,122,139,122,140,121,141,121,142,120,143,120,143,120,143,120,143,120,144,121,144,121,144}, .... {

for(i=0;i<98;i++){

glBegin( GL_POLYGON);

qtd = sizeof(geom[i])/4;

for(j=0; j<qtd;j+=2){ // recebe os pontos do Vetor Geon!!

glVertex2i((geom[i][j]), (geom[i][j+1]));

}

glEnd();

}

 

O vetor é muito maior do que esse, mas é dessa forma que está sendo codificado

Link to comment
Share on other sites

Se nao me engano, podes muito bem fazer por cores como o happy escreveu em cima.

for(i=0;i<98;i++){
glBegin( GL_POLYGON);
glColor3f(0.1f*i,0.1f*i,0.1f*i); //cor!!!
qtd = sizeof(geom[i])/4;
for(j=0; j<qtd;j+=2){   // recebe os pontos do Vetor Geon!!
  glVertex2i((geom[i][j]), (geom[i][j+1]));
}   
glEnd();
}

podes sempre fazer uma pesquisa por picking

Por muito mais que que estude só aprendo uma coisa, que ainda tenho muita coisa para aprender.

A beleza de um código está em decompor problemas complexos em pequenos blocos simples.

"learn how to do it manually first, then use the wizzy tool to save time."

"Kill the baby, don't be afraid of starting all over again. Fail soon, learn fast."

Link to comment
Share on other sites

Se nao me engano, podes muito bem fazer por cores como o happy escreveu em cima.

nem é necessário

se os pontos estão definidos em arrays por bairro, tens

{{X1mundo, Y1mundo}, {X2mundo, Y2mundo}, ... {XNmundo, YNmundo}}

a única coisa que necessita de fazer é converter o

{Xrato_ecra, Yrato_ecra}

em

{Xrato_mundo, Yrato_mundo}

e verificar se existe em algum dos vectores ...

Edited by HappyHippyHippo
IRC : sim, é algo que ainda existe >> #p@p
Link to comment
Share on other sites

se nao me engano os pontos do mundo sao iguais ao pontos do ecra porque nao ha' nenhuma conversao

Por muito mais que que estude só aprendo uma coisa, que ainda tenho muita coisa para aprender.

A beleza de um código está em decompor problemas complexos em pequenos blocos simples.

"learn how to do it manually first, then use the wizzy tool to save time."

"Kill the baby, don't be afraid of starting all over again. Fail soon, learn fast."

Link to comment
Share on other sites

se nao me engano os pontos do mundo sao iguais ao pontos do ecra porque nao ha' nenhuma conversao

pode ser que sim e pode ser que não, não vejo onde ele diz o contrário.

o caso de que a matriz de conversão mundo->janela é a matriz identidade é um caso muito particular.

IRC : sim, é algo que ainda existe >> #p@p
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.