<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
	<id>https://www.gambas-it.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Ruotare_un_ottaedro_in_una_DrawingArea</id>
	<title>Ruotare un ottaedro in una DrawingArea - Cronologia</title>
	<link rel="self" type="application/atom+xml" href="https://www.gambas-it.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Ruotare_un_ottaedro_in_una_DrawingArea"/>
	<link rel="alternate" type="text/html" href="https://www.gambas-it.org/wiki/index.php?title=Ruotare_un_ottaedro_in_una_DrawingArea&amp;action=history"/>
	<updated>2026-10-23T08:20:26Z</updated>
	<subtitle>Cronologia della pagina su questo sito</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>https://www.gambas-it.org/wiki/index.php?title=Ruotare_un_ottaedro_in_una_DrawingArea&amp;diff=41994&amp;oldid=prev</id>
		<title>Vuott il 00:44, 11 ago 2025</title>
		<link rel="alternate" type="text/html" href="https://www.gambas-it.org/wiki/index.php?title=Ruotare_un_ottaedro_in_una_DrawingArea&amp;diff=41994&amp;oldid=prev"/>
		<updated>2025-08-11T00:44:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;it&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versione delle 18:44, 10 ago 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l115&quot;&gt;Riga 115:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 115:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Paint.Stroke                  &amp;lt;FONT Color=gray&amp;gt;' ''Esegue effettivamente il disegno''&amp;lt;/font&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Paint.Stroke                  &amp;lt;FONT Color=gray&amp;gt;' ''Esegue effettivamente il disegno''&amp;lt;/font&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Next&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Next&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  Paint.End&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  End&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  End&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Vuott</name></author>
	</entry>
	<entry>
		<id>https://www.gambas-it.org/wiki/index.php?title=Ruotare_un_ottaedro_in_una_DrawingArea&amp;diff=41699&amp;oldid=prev</id>
		<title>Vuott il 19:09, 21 lug 2025</title>
		<link rel="alternate" type="text/html" href="https://www.gambas-it.org/wiki/index.php?title=Ruotare_un_ottaedro_in_una_DrawingArea&amp;diff=41699&amp;oldid=prev"/>
		<updated>2025-07-21T19:09:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;it&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versione delle 13:09, 21 lug 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l125&quot;&gt;Riga 125:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 125:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Select Case Key.Code&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Select Case Key.Code&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Case Key[&amp;quot;+&amp;quot;]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Case Key[&amp;quot;+&amp;quot;]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       Zoom &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;+&lt;/del&gt;= &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;50&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       Zoom = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Min(&lt;/ins&gt;Zoom &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;+ 25, &lt;/ins&gt;1000&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      If &lt;/del&gt;Zoom &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt; 1000 Then Zoom = &lt;/del&gt;1000&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Case Key[&amp;quot;-&amp;quot;]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     Case Key[&amp;quot;-&amp;quot;]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       Zoom &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-&lt;/del&gt;= &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;50&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       Zoom = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Max(&lt;/ins&gt;Zoom &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;- 25, 25)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      If &lt;/del&gt;Zoom &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt; 50 Then Zoom = 50&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   End Select&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   End Select&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Vuott</name></author>
	</entry>
	<entry>
		<id>https://www.gambas-it.org/wiki/index.php?title=Ruotare_un_ottaedro_in_una_DrawingArea&amp;diff=41687&amp;oldid=prev</id>
		<title>Vuott il 00:56, 21 lug 2025</title>
		<link rel="alternate" type="text/html" href="https://www.gambas-it.org/wiki/index.php?title=Ruotare_un_ottaedro_in_una_DrawingArea&amp;diff=41687&amp;oldid=prev"/>
		<updated>2025-07-21T00:56:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;it&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versione delle 18:56, 20 lug 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Riga 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mostreremo un possibile codice per disegnare e ruotare un Ottaedro intorno ai suoi assi X, Y e Z in una ''DrawingArea&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;quot;&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mostreremo un possibile codice per disegnare e ruotare un Ottaedro intorno ai suoi assi X, Y e Z in una ''DrawingArea&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;''&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Nell'esempio che segue sarà possibile aumentare o diminuire la dimensione del disegno dell'Ottaedro, cliccando rispettivamente sui tasti &amp;quot;+&amp;quot; e &amp;quot;-&amp;quot; della tastiera.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Nell'esempio che segue sarà possibile aumentare o diminuire la dimensione del disegno dell'Ottaedro, cliccando rispettivamente sui tasti &amp;quot;+&amp;quot; e &amp;quot;-&amp;quot; della tastiera.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Vuott</name></author>
	</entry>
	<entry>
		<id>https://www.gambas-it.org/wiki/index.php?title=Ruotare_un_ottaedro_in_una_DrawingArea&amp;diff=41682&amp;oldid=prev</id>
		<title>Vuott il 23:45, 20 lug 2025</title>
		<link rel="alternate" type="text/html" href="https://www.gambas-it.org/wiki/index.php?title=Ruotare_un_ottaedro_in_una_DrawingArea&amp;diff=41682&amp;oldid=prev"/>
		<updated>2025-07-20T23:45:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;it&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Versione meno recente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versione delle 17:45, 20 lug 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l121&quot;&gt;Riga 121:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riga 121:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Public Sub Form_KeyPress(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Key As String&lt;/del&gt;)   &amp;lt;FONT Color=gray&amp;gt;' ''Gestione della tastiera per controllare lo zoom''&amp;lt;/font&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Public Sub Form_KeyPress()   &amp;lt;FONT Color=gray&amp;gt;' ''Gestione della tastiera per controllare lo zoom''&amp;lt;/font&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Select Case Key.Code&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Select Case Key.Code&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Vuott</name></author>
	</entry>
	<entry>
		<id>https://www.gambas-it.org/wiki/index.php?title=Ruotare_un_ottaedro_in_una_DrawingArea&amp;diff=41681&amp;oldid=prev</id>
		<title>Vuott: Creata pagina con &quot;Mostreremo un possibile codice per disegnare e ruotare un Ottaedro intorno ai suoi assi X, Y e Z in una ''DrawingArea&quot;.  Nell'esempio che segue sarà possibile aumentare o dim...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.gambas-it.org/wiki/index.php?title=Ruotare_un_ottaedro_in_una_DrawingArea&amp;diff=41681&amp;oldid=prev"/>
		<updated>2025-07-20T23:43:18Z</updated>

		<summary type="html">&lt;p&gt;Creata pagina con &amp;quot;Mostreremo un possibile codice per disegnare e ruotare un Ottaedro intorno ai suoi assi X, Y e Z in una &amp;#039;&amp;#039;DrawingArea&amp;quot;.  Nell&amp;#039;esempio che segue sarà possibile aumentare o dim...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Mostreremo un possibile codice per disegnare e ruotare un Ottaedro intorno ai suoi assi X, Y e Z in una ''DrawingArea&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Nell'esempio che segue sarà possibile aumentare o diminuire la dimensione del disegno dell'Ottaedro, cliccando rispettivamente sui tasti &amp;quot;+&amp;quot; e &amp;quot;-&amp;quot; della tastiera.&lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Variabili per l'angolo di rotazione:&amp;lt;/font&amp;gt;&lt;br /&gt;
 Private angleX As Float&lt;br /&gt;
 Private angleY As Float&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Fattore di zoom (valore più alto = oggetto più grande):&amp;lt;/font&amp;gt;&lt;br /&gt;
 Private Zoom As Float = 150&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Array dinamici per i vertici e gli spigoli:&amp;lt;/font&amp;gt;&lt;br /&gt;
 Private Vertices As Object[]&lt;br /&gt;
 Private Edges As Object[]&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Public Sub Form_Open()&lt;br /&gt;
 &lt;br /&gt;
  With Me&lt;br /&gt;
    .Title = &amp;quot;Ottaedro che ruota intorno ai suoi assi X, Y e Z&amp;quot;&lt;br /&gt;
    .Move(0, 0, Screen.AvailableWidth, Screen.AvailableHeight)&lt;br /&gt;
    .Arrangement = Arrange.Fill&lt;br /&gt;
  End With&lt;br /&gt;
 &lt;br /&gt;
  Vertices = New Object[]&lt;br /&gt;
  Edges = New Object[]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Definizione dei 6 vertici dell'ottaedro (coordinate 3D):''&amp;lt;/font&amp;gt;&lt;br /&gt;
  Vertices.Push([0, 0, 1])     &amp;lt;FONT Color=gray&amp;gt;' ''Vertice superiore''&amp;lt;/font&amp;gt;&lt;br /&gt;
  Vertices.Push([1, 0, 0])&lt;br /&gt;
  Vertices.Push([0, 1, 0])&lt;br /&gt;
  Vertices.Push([-1, 0, 0])&lt;br /&gt;
  Vertices.Push([0, -1, 0])&lt;br /&gt;
  Vertices.Push([0, 0, -1])    &amp;lt;FONT Color=gray&amp;gt;' ''Vertice inferiore''&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Definizione degli spigoli come coppie di indici dei vertici:''&amp;lt;/font&amp;gt;&lt;br /&gt;
  Edges.Push([0, 1])&lt;br /&gt;
  Edges.Push([0, 2])&lt;br /&gt;
  Edges.Push([0, 3])&lt;br /&gt;
  Edges.Push([0, 4])&lt;br /&gt;
  Edges.Push([5, 1])&lt;br /&gt;
  Edges.Push([5, 2])&lt;br /&gt;
  Edges.Push([5, 3])&lt;br /&gt;
  Edges.Push([5, 4])&lt;br /&gt;
  Edges.Push([1, 2])&lt;br /&gt;
  Edges.Push([2, 3])&lt;br /&gt;
  Edges.Push([3, 4])&lt;br /&gt;
  Edges.Push([4, 1])&lt;br /&gt;
 &lt;br /&gt;
  Timer1.Delay = 16   &amp;lt;FONT Color=gray&amp;gt;' ''~60 FPS''&amp;lt;/font&amp;gt;&lt;br /&gt;
  Timer1.Start&lt;br /&gt;
 &lt;br /&gt;
 End&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Public Sub Timer1_Timer()&lt;br /&gt;
 &lt;br /&gt;
  angleX += 0.03   &amp;lt;FONT Color=gray&amp;gt;' ''Rotazione sull'asse X''&amp;lt;/font&amp;gt;&lt;br /&gt;
  angleY += 0.02   &amp;lt;FONT Color=gray&amp;gt;' ''Rotazione sull'asse Y''&amp;lt;/font&amp;gt;&lt;br /&gt;
  DrawingArea1.Refresh&lt;br /&gt;
 &lt;br /&gt;
 End&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Public Sub DrawingArea1_Draw()&lt;br /&gt;
 &lt;br /&gt;
  Dim w As Integer = DrawingArea1.W&lt;br /&gt;
  Dim h As Integer = DrawingArea1.H&lt;br /&gt;
  Dim cx As Float = w / 2       &amp;lt;FONT Color=gray&amp;gt;' ''Centro orizzontale''&amp;lt;/font&amp;gt;&lt;br /&gt;
  Dim cy As Float = h / 2       &amp;lt;FONT Color=gray&amp;gt;' ''Centro verticale''&amp;lt;/font&amp;gt;&lt;br /&gt;
  Dim points As Object[] = New Object[]   &amp;lt;FONT Color=gray&amp;gt;' ''Coordinate proiettate 2D''&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Calcola la proiezione 2D per ogni vertice ruotato:''&amp;lt;/font&amp;gt;&lt;br /&gt;
  For Each v As Float[] In Vertices&lt;br /&gt;
    Dim x, y, z As Float&lt;br /&gt;
    x = v[0]&lt;br /&gt;
    y = v[1]&lt;br /&gt;
    z = v[2]&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Rotazione attorno all'asse X:''&amp;lt;/font&amp;gt;&lt;br /&gt;
    Dim y1 As Float = y * Cos(angleX) - z * Sin(angleX)&lt;br /&gt;
    Dim z1 As Float = y * Sin(angleX) + z * Cos(angleX)&lt;br /&gt;
    y = y1&lt;br /&gt;
    z = z1&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Rotazione attorno all'asse Y:''&amp;lt;/font&amp;gt;&lt;br /&gt;
    Dim x1 As Float = x * Cos(angleY) + z * Sin(angleY)&lt;br /&gt;
    z1 = -x * Sin(angleY) + z * Cos(angleY)&lt;br /&gt;
    x = x1&lt;br /&gt;
    z = z1&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Evita divisioni per numeri troppo piccoli:''&amp;lt;/font&amp;gt;&lt;br /&gt;
    If (z + 3) &amp;lt; 0.1 Then&lt;br /&gt;
      points.Push([cx, cy])   &amp;lt;FONT Color=gray&amp;gt;' ''Coordinate &amp;quot;di sicurezza&amp;quot;''&amp;lt;/font&amp;gt;&lt;br /&gt;
      Continue&lt;br /&gt;
    Endif&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Proiezione prospettica: oggetti più vicini appaiono più grandi:''&amp;lt;/font&amp;gt;&lt;br /&gt;
    Dim scale As Float = Zoom / (z + 3)&lt;br /&gt;
    Dim sx As Float = cx + x * scale  ' Coordinata X sullo schermo''&amp;lt;/font&amp;gt;&lt;br /&gt;
    Dim sy As Float = cy - y * scale  ' Coordinata Y sullo schermo''&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
    points.Push([sx, sy])   &amp;lt;FONT Color=gray&amp;gt;' ''Aggiunge punto proiettato all'elenco''&amp;lt;/font&amp;gt;&lt;br /&gt;
  Next&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Imposta il colore per disegnare gli spigoli:''&amp;lt;/font&amp;gt;&lt;br /&gt;
  Paint.Brush = Paint.Color(Color.Black)&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;FONT Color=gray&amp;gt;' ''Disegna tutti gli spigoli dell’ottaedro:''&amp;lt;/font&amp;gt;&lt;br /&gt;
  For Each e As Integer[] In Edges&lt;br /&gt;
    Dim p1 As Float[] = points[e[0]]&lt;br /&gt;
    Dim p2 As Float[] = points[e[1]]&lt;br /&gt;
 &lt;br /&gt;
    Paint.MoveTo(p1[0], p1[1])    &amp;lt;FONT Color=gray&amp;gt;' ''Inizio linea''&amp;lt;/font&amp;gt;&lt;br /&gt;
    Paint.LineTo(p2[0], p2[1])    &amp;lt;FONT Color=gray&amp;gt;' ''Fine linea''&amp;lt;/font&amp;gt;&lt;br /&gt;
    Paint.Stroke                  &amp;lt;FONT Color=gray&amp;gt;' ''Esegue effettivamente il disegno''&amp;lt;/font&amp;gt;&lt;br /&gt;
  Next&lt;br /&gt;
 &lt;br /&gt;
  Paint.End&lt;br /&gt;
 &lt;br /&gt;
 End&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Public Sub Form_KeyPress(Key As String)   &amp;lt;FONT Color=gray&amp;gt;' ''Gestione della tastiera per controllare lo zoom''&amp;lt;/font&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  Select Case Key.Code&lt;br /&gt;
    Case Key[&amp;quot;+&amp;quot;]&lt;br /&gt;
      Zoom += 50&lt;br /&gt;
      If Zoom &amp;gt; 1000 Then Zoom = 1000&lt;br /&gt;
    Case Key[&amp;quot;-&amp;quot;]&lt;br /&gt;
      Zoom -= 50&lt;br /&gt;
      If Zoom &amp;lt; 50 Then Zoom = 50&lt;br /&gt;
  End Select&lt;br /&gt;
 &lt;br /&gt;
  DrawingArea1.Refresh&lt;br /&gt;
 &lt;br /&gt;
 End&lt;/div&gt;</summary>
		<author><name>Vuott</name></author>
	</entry>
</feed>