<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89470</guid>
        <pubDate>Mon, 20 Oct 2003 16:05:49 +0000</pubDate>
        <title>загляни-помоги!</title>
        <link>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89470</link>
        <description><![CDATA[experimenter: ааа! картинки с твоего сайта у меня не грузятся, как и сам сайт. :'( :'(<br>но я все-таки попробую найти утилиту mega2. :'( :'(]]></description>
        <author>experimenter</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89469</guid>
        <pubDate>Mon, 20 Oct 2003 11:17:00 +0000</pubDate>
        <title>загляни-помоги!</title>
        <link>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89469</link>
        <description><![CDATA[albom: Значит, сначала находим это:<br>
<img class='tag-img' src='http://albom.nm.ru/img/max1.gif' alt='user posted image'><br>
Потом жмем &quot;Run Script&quot; и выбираем файлик mega2.ms (можно скачать еще и <a class='tag-url' href='http://albom.nm.ru/sources/MEGA2.ms' target='_blank'>&lt;&lt;отсюда&gt;&gt;</a>)<br>
<img class='tag-img' src='http://albom.nm.ru/img/max2.gif' alt='user posted image'><br>
Смотрим, что получилось, потом жмем мышкой на слово &quot;MEGA2&quot; (что выделено желтым цветом). Должен открытся новый раздел, как показано ниже:<br>
<img class='tag-img' src='http://albom.nm.ru/img/max3.gif' alt='user posted image'><br>
<br>
ЗЫ. В 3dsMax5 это точно работает.]]></description>
        <author>albom</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89468</guid>
        <pubDate>Mon, 20 Oct 2003 06:57:51 +0000</pubDate>
        <title>загляни-помоги!</title>
        <link>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89468</link>
        <description><![CDATA[experimenter: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>albom, 18.10.03, 21:19:33</span><div class='quote '>Значит у меня сейчас 3dsmax`а нет, поэтому пишу по памяти.<br>Короче, есть такая панелька, где лежат кнопки &quot;Создать&quot;, &quot;Изменить&quot;, &quot;Иерархия&quot;, две какие-то фигни и кнопка &quot;Утилиты&quot;. Так в жмешь на эту самую правую кнопку, там ищешь пункт &quot;MaxScript&quot;, нажимаешь в нем &quot;Run Script&quot;, выбираешь нужный файлик. Где-то недалеко от этого места должна появится новая утилита &quot;MEGA2&quot; (нужно хорошо поискать, с первого раза можно и не найти :)). Так вот открываешь эту новую вкладку, дальше все должно быть понятно: выделяешь свой объект (который ты преобразовал в Editable Mesh), настраиваешь параметры (нужны ли текстуры в выходном файле, сохранять ли анимацию), жмешь &quot;Сохранить&quot;. В созхданном файле тебе  будет нужна только начальная часть (ведь, как я понял, нормали и текстуры тебе не нужны).<br>Вот вроде и все.</div></div><br>все вроде обыскал, но найти утилиту mega2 не могу. где она хоть находится примерно? ???]]></description>
        <author>experimenter</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89467</guid>
        <pubDate>Sun, 19 Oct 2003 16:40:31 +0000</pubDate>
        <title>загляни-помоги!</title>
        <link>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89467</link>
        <description><![CDATA[experimenter: да, спасибо. это то, что мне надо. надо только научиться пользоваться твоим скриптом. эээх! атакуем 3dmax еще раз. ;D]]></description>
        <author>experimenter</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89466</guid>
        <pubDate>Sun, 19 Oct 2003 06:05:55 +0000</pubDate>
        <title>загляни-помоги!</title>
        <link>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89466</link>
        <description><![CDATA[albom: Там будет что-то вроде этого:<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>numverts numfaces<br>
 &nbsp; 8 &nbsp; &nbsp; &nbsp; &nbsp;12<br>
 &nbsp; &nbsp; &nbsp;5.0 0.0 10.0<br>
Mesh vertices:<br>
 &nbsp; &nbsp; &nbsp;-10.0 -100.0 0.0<br>
 &nbsp; &nbsp; &nbsp;20.0 -100.0 0.0<br>
 &nbsp; &nbsp; &nbsp;-10.0 100.0 0.0<br>
 &nbsp; &nbsp; &nbsp;20.0 100.0 0.0<br>
 &nbsp; &nbsp; &nbsp;-10.0 -100.0 20.0<br>
 &nbsp; &nbsp; &nbsp;20.0 -100.0 20.0<br>
 &nbsp; &nbsp; &nbsp;-10.0 100.0 20.0<br>
 &nbsp; &nbsp; &nbsp;20.0 100.0 20.0<br>
end vertices<br>
Mesh faces:<br>
 &nbsp; &nbsp; &nbsp;1 3 4<br>
 &nbsp; &nbsp; &nbsp;4 2 1<br>
 &nbsp; &nbsp; &nbsp;5 6 8<br>
 &nbsp; &nbsp; &nbsp;8 7 5<br>
 &nbsp; &nbsp; &nbsp;1 2 6<br>
 &nbsp; &nbsp; &nbsp;6 5 1<br>
 &nbsp; &nbsp; &nbsp;2 4 8<br>
 &nbsp; &nbsp; &nbsp;8 6 2<br>
 &nbsp; &nbsp; &nbsp;4 3 7<br>
 &nbsp; &nbsp; &nbsp;7 8 4<br>
 &nbsp; &nbsp; &nbsp;3 1 5<br>
 &nbsp; &nbsp; &nbsp;5 7 3<br>
end faces<br>
</div></div><br>
То есть набор координат точек, и номера точек из которых будут состоять треугольники.]]></description>
        <author>albom</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89465</guid>
        <pubDate>Sun, 19 Oct 2003 02:53:53 +0000</pubDate>
        <title>загляни-помоги!</title>
        <link>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89465</link>
        <description><![CDATA[experimenter: да,спасибо. <br><div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>В созхданном файле тебе &nbsp;будет нужна только начальная часть (ведь, как я понял, нормали и текстуры тебе не нужны). </div></div><br>да, мне ничего не нужно кроме координат треугольников, которые там будут, я правильно понимаю?]]></description>
        <author>experimenter</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89464</guid>
        <pubDate>Sat, 18 Oct 2003 17:19:33 +0000</pubDate>
        <title>загляни-помоги!</title>
        <link>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89464</link>
        <description><![CDATA[albom: Значит у меня сейчас 3dsmax`а нет, поэтому пишу по памяти.<br>Короче, есть такая панелька, где лежат кнопки &quot;Создать&quot;, &quot;Изменить&quot;, &quot;Иерархия&quot;, две какие-то фигни и кнопка &quot;Утилиты&quot;. Так в жмешь на эту самую правую кнопку, там ищешь пункт &quot;MaxScript&quot;, нажимаешь в нем &quot;Run Script&quot;, выбираешь нужный файлик. Где-то недалеко от этого места должна появится новая утилита &quot;MEGA2&quot; (нужно хорошо поискать, с первого раза можно и не найти :)). Так вот открываешь эту новую вкладку, дальше все должно быть понятно: выделяешь свой объект (который ты преобразовал в Editable Mesh), настраиваешь параметры (нужны ли текстуры в выходном файле, сохранять ли анимацию), жмешь &quot;Сохранить&quot;. В созхданном файле тебе &nbsp;будет нужна только начальная часть (ведь, как я понял, нормали и текстуры тебе не нужны).<br>Вот вроде и все.]]></description>
        <author>albom</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89463</guid>
        <pubDate>Sat, 18 Oct 2003 14:10:51 +0000</pubDate>
        <title>загляни-помоги!</title>
        <link>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89463</link>
        <description><![CDATA[experimenter: я не очень понял, как пользоваться скримто. вот создал я его, сохранил. сделал, как ты сказал, т.е. конвертнул в editable mesh, даже скрипт запускал, а результат-то где?<br>сорри, я в 3dmax работаю только-только, но мне от него только это и надо.]]></description>
        <author>experimenter</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89462</guid>
        <pubDate>Sat, 18 Oct 2003 13:19:00 +0000</pubDate>
        <title>загляни-помоги!</title>
        <link>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89462</link>
        <description><![CDATA[experimenter: спасибо. попробуем.]]></description>
        <author>experimenter</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89461</guid>
        <pubDate>Sat, 18 Oct 2003 12:49:47 +0000</pubDate>
        <title>загляни-помоги!</title>
        <link>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89461</link>
        <description><![CDATA[albom: Выделяешь фигуру, далее конвертируешь ее в Editable Mesh, потом сохраняешь ее, например, таким сткриптом:<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">-------------------------------------------------------------------------------------</div><div class="code_line">-- MEGA2.ms</div><div class="code_line">-------------------------------------------------------------------------------------</div><div class="code_line">utility MEGExport &quot;MEGA2&quot;</div><div class="code_line">(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;local ostream, tabs = &quot;&quot;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;group &quot;Options&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;checkbox cb_exportSelOnly &quot;Selected Only&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;checkbox cb_exportTexVerts &quot;Export texture vertices&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;checkbox cb_exportAbsoluteCoord &quot;Use absolute coordinates&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;group &quot;Frames&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;spinner sp_start &quot;From:&quot; range:[animationrange.start,animationrange.end,animationrange.start] type:#Integer</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;spinner sp_end &quot;To:&quot; range:[animationrange.start,animationrange.end,animationrange.start] type:#Integer</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;spinner sp_step &quot;Step:&quot; range:[animationrange.start + 1,animationrange.end,animationrange.start + 1] type:#Integer</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;button btn_export &quot;Save As...&quot; width:100</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;-------------------------------------------------------------------------------------</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;function ExportTarget obj =</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;myobj.target = Targetobject()\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;myobj.target.name = \&quot;\%\&quot;\n&quot;) obj.target.name to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;myobj.target.transform = \%\n&quot;) obj.target.transform to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;myobj.target.position += createPos\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;-------------------------------------------------------------------------------------</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;function ExportGeneric obj =</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;\%\n&quot;) (ClassOf obj) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;\% &nbsp;\% &nbsp;\%\n&quot;) (obj.pos.x) (obj.pos.y) (obj.pos.z) to:ostream</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for prop in GetPropNames obj do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;local propname = prop as String</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;local propval &nbsp;= GetProperty obj prop</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (ClassOf obj) == Hedra and prop == #vertices then continue</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if propval != undefined then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;\t\% \%\n&quot;) propname propval to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if obj.target != undefined then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExportTarget obj</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;end \%\n&quot;) (ClassOf obj) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;-------------------------------------------------------------------------------------</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;function ExportTexVertices MeshObj =</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;\%\n&quot;) (MeshObj.material.maps[2].Bitmap) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (Tabs+&quot;\% \% \% \%\n&quot;) (MeshObj.material.ambient.r as Integer) (MeshObj.material.ambient.g as Integer) (MeshObj.material.ambient.b as Integer) ((MeshObj.material.opacity*2.55) as Integer)to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;numtverts numtvfaces\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot; &nbsp; \% &nbsp; &nbsp; &nbsp; &nbsp;\%\n&quot;) meshObj.numTVerts meshObj.numfaces to:ostream &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Write texture vertices</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if MeshObj.numTVerts &#62; 0 then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;Texture vertices:\n&quot;) to:ostream</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for i = 1 to meshObj.NumTVerts do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;\t\% \% \%\n&quot;) (GetTVert meshObj i).x (GetTVert meshObj i).y (GetTVert meshObj i).z to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs + &quot;end texture vertices\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Write texture faces</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if meshObj.numfaces &#62; 0 then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;Texture faces:\n&quot;) to:ostream</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for i = 1 to meshObj.numfaces do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;\t\% \% \%\n&quot;) ((GetTVFace meshObj i).x as Integer) ((GetTVFace meshObj i).y as Integer) ((GetTVFace meshObj i).z as Integer) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs + &quot;end texture faces\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;-------------------------------------------------------------------------------------</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;function ExportMesh meshObj =</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;TriMesh()\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;numverts numfaces\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot; &nbsp; \% &nbsp; &nbsp; &nbsp; &nbsp;\%\n&quot;) meshObj.numverts meshObj.numfaces to:ostream</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format(tabs+&quot;\t\% \% \%\n&quot;) (meshObj.Center.x) (meshObj.Center.y) (meshObj.Center.z) to:ostream &nbsp;&nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Write vertices</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if meshObj.numVerts &#62; 0 then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;Mesh vertices:\n&quot;) to:ostream</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if cb_exportAbsoluteCoord.Checked then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for i = 1 to meshObj.numVerts do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;\t\% \% \%\n&quot;) ((GetVert meshObj i).x) ((GetVert meshObj i).y) ((GetVert meshObj i).z) to:ostream &nbsp;&nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (</div><div class="code_line">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for i = 1 to meshObj.numVerts do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;\t\% \% \%\n&quot;) ((GetVert meshObj i).x - meshObj.Center.x) ((GetVert meshObj i).y - meshObj.Center.y) ((GetVert meshObj i).z - meshObj.Center.z) to:ostream &nbsp;&nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ) &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;end vertices\n&quot;) to:ostream</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Write faces</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if meshObj.numFaces &#62; 0 then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;Mesh faces:\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for i = 1 to meshObj.numFaces do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;\t\% \% \%\n&quot;) ((GetFace meshObj i).x as Integer) ((GetFace meshObj i).y as integer) ((GetFace meshObj i).z as Integer) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;end faces\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Write faset normals</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if meshObj.numFaces &#62; 0 then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;Faset normals:\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for i = 1 to meshObj.numFaces do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;( &nbsp; &nbsp; &nbsp;Format (tabs+&quot;\t\% \% \%\n&quot;) (GetFaceNormal meshObj i).x (GetFaceNormal meshObj i).y (GetFaceNormal meshObj i).z to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;end faset normals\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Write smoothing normals</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if meshObj.numVerts &#62; 0 then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;Smooth normals:\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for i = 1 to meshObj.numVerts do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;\t\% \% \%\n&quot;) (GetNormal meshObj i).x (GetNormal meshObj i).y (GetNormal meshObj i).z to:ostream &nbsp;&nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;end smooth normals\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format (tabs+&quot;end mesh\n&quot;) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Write texture coordinates</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if cb_exportTexVerts.checked then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format &quot;New Texture:\n&quot; to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExportTexVertices meshObj</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format &quot;end of texture\n&quot; &nbsp; &nbsp; &nbsp;to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;-------------------------------------------------------------------------------------</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;-------------------------------------------------------------------------------------</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;function ExportNode node =</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format &quot;New object\n&quot; to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format &quot;\%\n&quot; (node.name) to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if SuperClassOf node == GeometryClass and ClassOf node == Editable_mesh then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExportMesh node</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else if (not (ClassOf node == Targetobject and node.isTarget)) then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExportGeneric node</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return false</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Format &quot;End object\n&quot; to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return true</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;-------------------------------------------------------------------------------------</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;function RecursiveExportNode node =</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (ExportNode node) == false then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return false</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Recurse children before writing this node</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for child in node.children do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RecursiveExportNode child</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;-------------------------------------------------------------------------------------</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;function ExportGMS =</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if cb_exportSelOnly.checked then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for node in selection do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExportNode node</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for node in rootnode.children do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RecursiveExportNode node</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;-------------------------------------------------------------------------------------</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;function GetSaveFileStream =</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fname = GetSaveFileName types:&quot;Game Meshes Files (*.gms)|*.gms|All Files(*.*)|*.*|&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if fname == undefined then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return undefined</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ostream = CreateFile fname</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ostream == undefined then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MessageBox &quot;Couldn&#39;t open file for writing !&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return undefined</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;-------------------------------------------------------------------------------------</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;on btn_export pressed do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ostream = GetSaveFileStream()</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ostream != undefined then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i = sp_start.value</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;while i &#60;= sp_end.value do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;slidertime = i</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExportGMS()</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i += sp_step.value</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp;if cb_exportTexVerts.checked then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for node in selection do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if SuperClassOf node == GeometryClass and ClassOf node == Editable_mesh then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format &quot;New Texture:\n&quot; to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ExportTexVertices node</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format &quot;end of texture\n&quot; &nbsp; &nbsp; &nbsp;to:ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Format &quot;end of file&quot; to:ostream </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Close ostream</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;--------------------------------------------------------------------------------------</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;on sp_start changed value do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;slidertime = sp_start.value</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;on MEGExport open do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; (</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; max views redraw</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; )</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">) -- End MEGExport</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
Вроде то, если я правильно понял суть вопроса...]]></description>
        <author>albom</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89460</guid>
        <pubDate>Sat, 18 Oct 2003 04:22:18 +0000</pubDate>
        <title>загляни-помоги!</title>
        <link>https://forum.sources.ru/index.php?showtopic=9098&amp;view=findpost&amp;p=89460</link>
        <description><![CDATA[experimenter: не знаю, куда было запостить тему, поэтому запостил сюда. <br>проблема такова, что мне надо триангулировать нарисованную в 3dmax фигуру, а как его заставить это сделать, я не знаю. <br>истоки этой проблемы лежат в том, что надо крутить-вертеть и рисовать фигуру в пространстве, и мне подумалось, что считать координаты фигуры лень, и пусть 3dmax это сделает, а я буду &nbsp;рисовать только треугольнички, используя алгоритм z-буфера.<br>заранее благодарен за комментарии, советы и помощь.]]></description>
        <author>experimenter</author>
        <category>Алгоритмы</category>
      </item>
	
      </channel>
      </rss>
	