<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio" version="0.93"?>
<regions>
  <settings>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="false" printAreas="true" simpleEqualsOnly="false">
      <paper id="9" orientation="Portrait" width="827" height="1169" />
      <margins left="39" right="39" top="39" bottom="39" />
      <header alignment="Center" color="#a9a9a9">&amp;[DATE] &amp;[TIME] - &amp;[FILENAME]</header>
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
    </pageModel>
    <dependences>
      <assembly name="SMath Studio" version="0.93" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.93" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="Text Region" version="1.6.4446.37061" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="GPCPlugin" version="1.0.4480.36857" guid="ddc09821-49f1-4c21-a829-6499de0a8f01" />
      <assembly name="Special Functions" version="1.7.4446.35484" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="Plot Region" version="1.5.4446.35448" guid="c451c2b5-798b-4f08-b9ec-b90963d1ddaa" />
      <assembly name="Area Region" version="0.93" guid="4974b228-4974-44cf-8274-bf2936b4a766" />
    </dependences>
  </settings>
  <region id="0" left="18" top="9" width="102" height="80" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">Q</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">4</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="10">mat</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="1" left="621" top="9" width="79" height="98" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">5</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="12">mat</e>
      </input>
    </math>
  </region>
  <region id="2" left="144" top="36" width="476" height="40" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Список с вершинами* многоугольника (матрица)
                                   * можно использовать замкнутый контур-&gt; </p>
    </text>
  </region>
  <region id="3" left="18" top="90" width="146" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">P</e>
        <e type="operand">Q</e>
        <e type="function" preserve="true" args="1">gpc_polygon</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="4" left="207" top="90" width="209" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Создаем многоугольник</p>
    </text>
  </region>
  <region id="5" left="18" top="126" width="193" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">P</e>
      </input>
      <result action="numeric">
        <e type="operand">1</e>
        <e type="operand">4</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">4</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">2</e>
        <e type="operand">6</e>
        <e type="function" preserve="true" args="14">mat</e>
      </result>
    </math>
  </region>
  <region id="6" left="18" top="171" width="84" height="62" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">V</e>
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">10</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">3</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="8">mat</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="7" left="18" top="252" width="227" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">T</e>
        <e type="operand">P</e>
        <e type="operand">V</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_add_contour</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="8" left="261" top="252" width="388" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Добавляем внутренний контур в многоугольник</p>
    </text>
  </region>
  <region id="9" left="18" top="279" width="281" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">T</e>
      </input>
      <result action="numeric">
        <e type="operand">2</e>
        <e type="operand">4</e>
        <e type="operand">3</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">90</e>
        <e type="operand">7</e>
        <e type="operand">0</e>
        <e type="operand">1</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">10</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">2</e>
        <e type="operand">10</e>
        <e type="function" preserve="true" args="22">mat</e>
      </result>
    </math>
  </region>
  <region id="10" left="9" top="342" width="316" height="24" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">Формат многоугольника (на примере T):</p>
    </text>
  </region>
  <region id="11" left="90" top="378" width="244" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="5">submatrix</e>
      </input>
      <result action="numeric">
        <e type="operand">2</e>
        <e type="operand">7</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="4">mat</e>
      </result>
    </math>
  </region>
  <region id="12" left="333" top="378" width="331" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Общее кол-во контуров многоугольника</p>
    </text>
  </region>
  <region id="13" left="333" top="396" width="314" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Общее кол-во вершин многоугольника</p>
    </text>
  </region>
  <region id="14" left="9" top="423" width="330" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="operator" args="2">+</e>
        <e type="operand">1</e>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">el</e>
        <e type="operator" args="2">+</e>
        <e type="function" preserve="true" args="5">submatrix</e>
      </input>
      <result action="numeric">
        <e type="operand">4</e>
        <e type="operand">3</e>
        <e type="operand">0</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="6">mat</e>
      </result>
    </math>
  </region>
  <region id="15" left="333" top="423" width="721" height="56" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Число столбцов равно числу контуров
       1-ая строка - количество вершин в контуре
       2-ая строка - тип контура: 0-внешний, 1-внутренний (вырезает дыру в многоугольнике)</p>
    </text>
  </region>
  <region id="16" left="9" top="486" width="490" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="operand">2</e>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">el</e>
        <e type="operator" args="2">+</e>
        <e type="operand">1</e>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">el</e>
        <e type="operator" args="2">+</e>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="3">el</e>
        <e type="operator" args="2">+</e>
        <e type="function" preserve="true" args="5">submatrix</e>
      </input>
      <result action="numeric">
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">2</e>
        <e type="operand">4</e>
        <e type="function" preserve="true" args="10">mat</e>
      </result>
    </math>
  </region>
  <region id="17" left="513" top="495" width="209" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Вершины 1-ого контура</p>
    </text>
  </region>
  <region id="18" left="9" top="531" width="545" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="operand">2</e>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">el</e>
        <e type="operator" args="2">+</e>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="3">el</e>
        <e type="operator" args="2">+</e>
        <e type="operand">1</e>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">el</e>
        <e type="operator" args="2">+</e>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="3">el</e>
        <e type="operator" args="2">+</e>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">3</e>
        <e type="function" preserve="true" args="3">el</e>
        <e type="operator" args="2">+</e>
        <e type="function" preserve="true" args="5">submatrix</e>
      </input>
      <result action="numeric">
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">2</e>
        <e type="operand">3</e>
        <e type="function" preserve="true" args="8">mat</e>
      </result>
    </math>
  </region>
  <region id="19" left="576" top="540" width="209" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Вершины 2-ого контура</p>
    </text>
  </region>
  <region id="20" left="18" top="603" width="350" height="232" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="0.177078388304556" scale_y="0.177078388304556" scale_z="0.177078388304556" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-76" transpose_y="-77" transpose_z="0">
      <input>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
        <e type="operand">T</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="21" top="891" color="#000000" bgColor="#ffffff">
    <area single="true" collapsed="true" />
  </region>
  <region id="22" left="36" top="909" width="102" height="62" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">G</e>
        <e type="operand">10</e>
        <e type="operand">10</e>
        <e type="operand">200</e>
        <e type="operand">200</e>
        <e type="operand">200</e>
        <e type="operand">0</e>
        <e type="operand">3</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="8">mat</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="23" left="18" top="972" width="146" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">N</e>
        <e type="operand">G</e>
        <e type="function" preserve="true" args="1">gpc_polygon</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="24" left="180" top="972" width="209" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- создаем многоугольник</p>
    </text>
  </region>
  <region id="25" left="18" top="1008" width="168" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">N</e>
      </input>
      <result action="numeric">
        <e type="operand">1</e>
        <e type="operand">3</e>
        <e type="operand">10</e>
        <e type="operand">200</e>
        <e type="operand">200</e>
        <e type="operand">3</e>
        <e type="operand">0</e>
        <e type="operand">10</e>
        <e type="operand">200</e>
        <e type="operand">0</e>
        <e type="operand">2</e>
        <e type="operand">5</e>
        <e type="function" preserve="true" args="12">mat</e>
      </result>
    </math>
  </region>
  <region id="26" left="9" top="1053" width="351" height="305" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="0.165048629601895" scale_y="0.165048629601895" scale_z="0.165048629601895" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-107" transpose_y="-113" transpose_z="0">
      <input>
        <e type="operand">T</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
        <e type="operand">T</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
        <e type="operand">N</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
        <e type="operand">3</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="5">sys</e>
      </input>
    </plot>
  </region>
  <region id="27" top="1431" color="#000000" bgColor="#ffffff">
    <area single="true" collapsed="true" />
  </region>
  <region id="28" left="18" top="1449" width="251" height="24" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">Разность двух многоугольников</p>
    </text>
  </region>
  <region id="29" left="18" top="1476" width="169" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">M</e>
        <e type="operand">0</e>
        <e type="operand">T</e>
        <e type="operand">N</e>
        <e type="function" preserve="true" args="3">gpc_clip</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="30" left="18" top="1503" width="346" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">M</e>
      </input>
      <result action="numeric">
        <e type="operand">1</e>
        <e type="operand">9</e>
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">50</e>
        <e type="operand">10</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">9</e>
        <e type="operand">0</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">50</e>
        <e type="operand">10</e>
        <e type="operand">5.2632</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">2</e>
        <e type="operand">11</e>
        <e type="function" preserve="true" args="24">mat</e>
      </result>
    </math>
  </region>
  <region id="31" left="18" top="1557" width="346" height="285" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="0.313705166663208" scale_y="0.313705166663208" scale_z="0.313705166663208" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-108" transpose_y="-113" transpose_z="0">
      <input>
        <e type="operand">M</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
      </input>
    </plot>
  </region>
  <region id="32" top="1872" color="#000000" bgColor="#ffffff">
    <area single="true" collapsed="true" />
  </region>
  <region id="33" left="18" top="1890" width="276" height="24" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">Пересечение двух многоугольников</p>
    </text>
  </region>
  <region id="34" left="18" top="1917" width="169" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">M</e>
        <e type="operand">1</e>
        <e type="operand">T</e>
        <e type="operand">N</e>
        <e type="function" preserve="true" args="3">gpc_clip</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="35" left="18" top="1944" width="264" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">M</e>
      </input>
      <result action="numeric">
        <e type="operand">1</e>
        <e type="operand">6</e>
        <e type="operand">100</e>
        <e type="operand">10</e>
        <e type="operand">50</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">100</e>
        <e type="operand">6</e>
        <e type="operand">0</e>
        <e type="operand">5.2632</e>
        <e type="operand">10</e>
        <e type="operand">50</e>
        <e type="operand">10</e>
        <e type="operand">90</e>
        <e type="operand">100</e>
        <e type="operand">2</e>
        <e type="operand">8</e>
        <e type="function" preserve="true" args="18">mat</e>
      </result>
    </math>
  </region>
  <region id="36" left="18" top="1989" width="346" height="285" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="0.313705166663208" scale_y="0.313705166663208" scale_z="0.313705166663208" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-108" transpose_y="-113" transpose_z="0">
      <input>
        <e type="operand">M</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
      </input>
    </plot>
  </region>
  <region id="37" top="2304" color="#000000" bgColor="#ffffff">
    <area single="true" collapsed="true" />
  </region>
  <region id="38" left="18" top="2322" width="309" height="24" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">Исключающее ИЛИ двух многоугольников</p>
    </text>
  </region>
  <region id="39" left="18" top="2358" width="169" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">M</e>
        <e type="operand">2</e>
        <e type="operand">T</e>
        <e type="operand">N</e>
        <e type="function" preserve="true" args="3">gpc_clip</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="40" left="18" top="2385" width="606" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">M</e>
      </input>
      <result action="numeric">
        <e type="operand">2</e>
        <e type="operand">3</e>
        <e type="operand">13</e>
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">50</e>
        <e type="operand">200</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">50</e>
        <e type="operand">10</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">200</e>
        <e type="operand">16</e>
        <e type="operand">1</e>
        <e type="operand">0</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">50</e>
        <e type="operand">0</e>
        <e type="operand">5.2632</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">50</e>
        <e type="operand">10</e>
        <e type="operand">5.2632</e>
        <e type="operand">100</e>
        <e type="operand">200</e>
        <e type="operand">2</e>
        <e type="operand">19</e>
        <e type="function" preserve="true" args="40">mat</e>
      </result>
    </math>
  </region>
  <region id="41" left="9" top="2430" width="346" height="285" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="0.166715787476662" scale_y="0.166715787476662" scale_z="0.166715787476662" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-108" transpose_y="-113" transpose_z="0">
      <input>
        <e type="operand">M</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
        <e type="operand">M</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="42" top="2772" color="#000000" bgColor="#ffffff">
    <area single="true" collapsed="true" />
  </region>
  <region id="43" left="18" top="2790" width="276" height="24" border="true" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">Объединение двух многоугольников</p>
    </text>
  </region>
  <region id="44" left="18" top="2817" width="169" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">M</e>
        <e type="operand">3</e>
        <e type="operand">T</e>
        <e type="operand">N</e>
        <e type="function" preserve="true" args="3">gpc_clip</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="45" left="18" top="2844" width="412" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">M</e>
      </input>
      <result action="numeric">
        <e type="operand">2</e>
        <e type="operand">3</e>
        <e type="operand">7</e>
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">50</e>
        <e type="operand">200</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">200</e>
        <e type="operand">10</e>
        <e type="operand">1</e>
        <e type="operand">0</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">50</e>
        <e type="operand">0</e>
        <e type="operand">5.2632</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">200</e>
        <e type="operand">2</e>
        <e type="operand">13</e>
        <e type="function" preserve="true" args="28">mat</e>
      </result>
    </math>
  </region>
  <region id="46" left="18" top="2889" width="346" height="285" color="#000000" bgColor="#ffffff" fontSize="10">
    <plot type="2d" render="lines" scale_x="0.150044208728996" scale_y="0.150044208728996" scale_z="0.150044208728996" rotate_x="0" rotate_y="0" rotate_z="0" transpose_x="-108" transpose_y="-113" transpose_z="0">
      <input>
        <e type="operand">M</e>
        <e type="operand">1</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
        <e type="operand">M</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="4">sys</e>
      </input>
    </plot>
  </region>
  <region id="47" top="3222" color="#000000" bgColor="#ffffff">
    <area single="true" collapsed="true" />
  </region>
  <region id="48" left="18" top="3249" width="278" height="62" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">T</e>
        <e type="operand">2</e>
        <e type="operand">0</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
      </input>
      <result action="numeric">
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">10</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">3</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="8">mat</e>
      </result>
    </math>
  </region>
  <region id="49" left="297" top="3267" width="159" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Получить контур</p>
    </text>
  </region>
  <region id="50" left="18" top="3312" width="278" height="80" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">T</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_get_contour</e>
      </input>
      <result action="numeric">
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">10</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">4</e>
        <e type="operand">2</e>
        <e type="function" preserve="true" args="10">mat</e>
      </result>
    </math>
  </region>
  <region id="51" left="297" top="3339" width="274" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Получить контур для рисования</p>
    </text>
  </region>
  <region id="52" left="18" top="3402" width="352" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">T</e>
        <e type="operand" style="string">GpcTest.txt</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="3">gpc_write_polygon</e>
      </input>
      <result action="numeric">
        <e type="operand">0</e>
      </result>
    </math>
  </region>
  <region id="53" left="378" top="3402" width="134" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Пишем в файл</p>
    </text>
  </region>
  <region id="54" left="18" top="3438" width="310" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2">
      <input>
        <e type="operand">R</e>
        <e type="operand" style="string">GpcTest.txt</e>
        <e type="operand">1</e>
        <e type="function" preserve="true" args="2">gpc_read_polygon</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="55" left="378" top="3438" width="158" height="24" color="#000000" bgColor="#ffffff" fontSize="10">
    <text lang="rus">
      <p fontName="Courier New">&lt;- Читаем из файла</p>
    </text>
  </region>
  <region id="56" left="18" top="3483" width="281" height="44" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">R</e>
      </input>
      <result action="numeric">
        <e type="operand">2</e>
        <e type="operand">4</e>
        <e type="operand">3</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">0</e>
        <e type="operand">90</e>
        <e type="operand">10</e>
        <e type="operand">90</e>
        <e type="operand">7</e>
        <e type="operand">0</e>
        <e type="operand">1</e>
        <e type="operand">0</e>
        <e type="operand">0</e>
        <e type="operand">100</e>
        <e type="operand">100</e>
        <e type="operand">10</e>
        <e type="operand">90</e>
        <e type="operand">90</e>
        <e type="operand">2</e>
        <e type="operand">10</e>
        <e type="function" preserve="true" args="22">mat</e>
      </result>
    </math>
  </region>
</regions>