<?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=407740&amp;view=findpost&amp;p=3648561</guid>
        <pubDate>Fri, 22 Jan 2016 02:10:47 +0000</pubDate>
        <title>циклическая обработка объектов в файле svg</title>
        <link>https://forum.sources.ru/index.php?showtopic=407740&amp;view=findpost&amp;p=3648561</link>
        <description><![CDATA[tomsksmile: Уважаемые участники форума&#33;<br>
<br>
<br>
Имеется план здания (файл *.svg), созданный в программе Inkscape. <br>
Объекты отрисованы и сгруппированы на отдельных слоях.<br>
В отдельном слое нанесены объекты &quot;Markers&quot;. Известны их координаты (cx, cy), стиль (style, цвет заливки и т.д.), уникальный идентификатор (id), тип (окружность circle радиуса r). <br>
На рисунке маркер А это path4703, В - path4713, С - path4711.<br>
<br>
<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">&#60;g</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; id=&quot;g4763&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;circle</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; r=&quot;1.5&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; cy=&quot;286.64792&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; cx=&quot;296.42856&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; style=&quot;fill:#ff0000;fill-opacity:1;stroke:none&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; id=&quot;path4703&quot; /&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;circle</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; r=&quot;1.5&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; cy=&quot;391.21735&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; cx=&quot;256.07367&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; style=&quot;fill:#000000;stroke:none&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; id=&quot;path4711&quot; /&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;circle</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; r=&quot;1.5&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; cy=&quot;390.20721&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; cx=&quot;295.9747&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; style=&quot;fill:#ff0000;fill-opacity:1;stroke:none&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; id=&quot;path4713&quot; /&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;/g&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/g&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
    <br>
Требуется вывести в файл пары идентификаторов для маркеров, которые можно соединить прямой линией без пересечения с другими видимыми объектами (несколько слоев скрыты). <br>
Например, это (A, B) и (В, С), т.е. (path4703, path4713) и (path4713, path4711).<br>
<br>
Прошу высказать идеи как это можно сделать. <br>
Можно ли это сделать встроенными средствами Inkscape (script Phyton)?<br>
В Inkscape начало координат (0, 0) -- левый нижний угол, при сохранении в svg -- начало координат (0, 0) -- левый верхний угол. <br>
Может быть есть плагины к Inkscapе?<br>
<br>
Изначально вопрос был задан <a class='tag-url' href='http://forum.sources.ru/index.php?showtopic=407737' target='_blank'>в разделе Алгоритмы</a>, но после ответа <strong class='tag-b'>MBo</strong>, сформулировал задачу по-другому.<br>
<br>
Подредактировал формулировку, <span class="tag-color tag-color-named" data-value="red" style="color: red">не могу приложить файл svg</span>.]]></description>
        <author>tomsksmile</author>
        <category>Программирование графики</category>
      </item>
	
      </channel>
      </rss>
	