<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="/feed/bypass/styles/feed.css" media="screen"?>
<?xml-stylesheet type="text/xsl" href="/feed/bypass/styles/feed.xsl"?>
<rss version="2.0"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">

	<channel>
	  <!-- main channel info -->
        <title>Need hints how to adapt/hack wings_draw.erl </title>
        <link>http://nendowingsmirai.yuku.com/topic/6325/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html</link>
        <description>
        <![CDATA[ 
  


Need hints how to adapt/hack wings_draw.erl


I&#39;m sure I can do again since code base has changed (wpc_ogla is gone).


I think there is a PREFERRED and legitimate way for plugins to adapt drawing.


I want to be able to draw my &quot;directed edges&quot; once again in the current codebase

via my plugin(s). My prior approach was to &quot;PATCH&quot; wings_draw, which is of course

not the best way.


So if one of you devs could drop me some hints / examples of where to look in... ]]>
        </description>

		<!-- optional elements -->
		<language>en-us</language>
		<copyright>Copyright 2006, Yuku</copyright>
		<managingEditor>feeds@yuku.com (FeedMaster)</managingEditor>
		<webMaster>webmaster@yuku.com (WebMaster)</webMaster>
		<!-- note: dates need to be RFC 822 formated "Sat, 07 Sep 2002 00:00:01 GMT" -->
		<pubDate>Mon, 29 Jun 2009 05:50:27 GMT</pubDate>
		<lastBuildDate>Wed, 08 Jul 2009 10:17:01 GMT</lastBuildDate>
		<generator>Yuku Feeds 1.0</generator>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<!-- <cloud domain="rpc.yuku.com" port="80" path="/RPC2" registerProcedure="pingMe" protocol="soap"/>-->
		<ttl>60</ttl>
		<!-- feed image -->
		<image>
			<title>Yuku</title>
			<url>http://static.yuku.com//feed/bypass/images/button-yuku.png</url>
			<link>http://nendowingsmirai.yuku.com/topic/6325/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html</link>
			<description>Yuku - free hosted forums and profiles</description>
			<width>88</width>
			<height>31</height>
		</image>
		<rating>
		{pics-1.1 &quot;http://www.icra.org/ratingsv02.html&quot; l gen true for &quot;http://yuku.com&quot; r (nz 1 vz 1 lz 1 oz 1 cz 1 ) &quot;http://www.rsac.org/ratingsv01.html&quot; l gen true for &quot;http://yuku.com&quot; r (n 0 s 0 v 0 l 0 ))
		</rating>
		<textInput>
			<title>Search</title>
			<description>Search Domain</description>
			<name>q</name>
			<link>http://yuku.com/search/direct/</link>
		</textInput>
		<!-- skip
		<skipHours>
			<hour>23</hour>
		</skipHours>
		<skipDays>
			<day>Monday</day>
			<day>Wednesday</day>
			<day>Friday</day>
		</skipDays>-->
		<!-- extensions -->


		<!-- channel items -->
		<!-- descriptions should be shorter than 500 char to be polite -->
		<!-- html shoud be stripped or escaped -->
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39317/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39317</link>
			<description><![CDATA[ Keep a copy of the we and diff the edge table for changes between the new and old we.
<br> ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (dgud)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39317</guid>
			<pubDate>Wed, 08 Jul 2009 10:17:01 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39311/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39311</link>
			<description><![CDATA[ My directed edge data is a look up of right faces for each edge.
<br>
<br>
But this expires often when a destructive/constructive operation occurs.
<br>
<br>
So I need to come up with a scheme for letting this info &quot;expire&quot;
<br>
<br>
I could use some kind of CLUDGE like count the faces, verts, edges
<br>
on the We whenever I attach the directed edge list. But this will
<br>
likely not be perfect solution. ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (ggaliens)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39311</guid>
			<pubDate>Tue, 07 Jul 2009 18:36:40 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39310/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39310</link>
			<description><![CDATA[ Optigon, Dan G ...
<br>
<br>
Shouldn&#39;t there be a callback into plugin whenever any manifold destructive/constructive operation occurs ???
<br>
<br>
as opposed to just merge_we ????
<br>
<br>
How can my plugin be made aware of when a topology destructive operation is going to occur ???
<br>
<br>
Please advise. ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (ggaliens)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39310</guid>
			<pubDate>Tue, 07 Jul 2009 18:30:16 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39215/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39215</link>
			<description><![CDATA[ But as far as the api for drawing plugin elements, I don&#39;t think anything changed. If there was a problem, Magnet Mask would have stopped working.
<br>
<br>
For the dlo to be blank (as in the error report), there would likely be a problem with your code involving updating the dlo.
<br>
<br>
<br> ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (optigon)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39215</guid>
			<pubDate>Fri, 03 Jul 2009 09:00:36 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39213/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39213</link>
			<description><![CDATA[ I think I changed a lot :-) ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (dgud)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39213</guid>
			<pubDate>Fri, 03 Jul 2009 07:45:04 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39188/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39188</link>
			<description><![CDATA[ Not sure.. the dlo is being wiped clean somewhere.
<br>
<br>
Maybe unrelated, but I had to update to the latest erlang before 1.1.5 would compile properly.
<br> ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (optigon)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39188</guid>
			<pubDate>Thu, 02 Jul 2009 08:19:13 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39173/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39173</link>
			<description><![CDATA[ Dan ... can you think of something that changed from 1.1.4 to 1.1.5 (presumably last week) that would
<br>
have broken my first attempt at being draw plugin compatible ??? Works ok in 1.1.4.
<br>
<br>
I&#39;ll have to get back in there and do some more studying.
<br>
<br>
<br>
Here&#39;s a bit of crash dump I get when trying to install my latest ManifoldLab
<br>
into 1.1.5 ... so maybe you will know what I&#39;m missing , or not doing from this ???
<br>
<br>
<pre>

Dump written... ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (ggaliens)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39173</guid>
			<pubDate>Wed, 01 Jul 2009 16:35:24 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39152/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39152</link>
			<description><![CDATA[ You can do that.. but merge_we/1 will renumber the edges according to the new object, keeping them in the proper place. So there is no need to delete them.
<br> ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (optigon)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39152</guid>
			<pubDate>Wed, 01 Jul 2009 05:57:13 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39151/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39151</link>
			<description><![CDATA[ OK ... I&#39;ll be sure to delete directed edges as part of the merge.
<br>
<br>
Thanks. ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (ggaliens)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39151</guid>
			<pubDate>Wed, 01 Jul 2009 05:47:18 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39146/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39146</link>
			<description><![CDATA[ Glad it worked out for you <img src="http://www.ezboard.com/images/emoticons/smile.gif">
<br>
<br>
&lt;&lt;I don&#39;t expect to have to merge&gt;&gt;
<br>
<br>
Well just so you know what to expect. If objects with your directed edges are merged, then there will be draw errors unless this part of the api is used.
<br> ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (optigon)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39146</guid>
			<pubDate>Tue, 30 Jun 2009 20:25:49 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39145/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39145</link>
			<description><![CDATA[ Yeah !!
<br>
<br>
You da man Optigon. Thanks for helping to work this part of the API out with the DEVS.
<br>
<br>
I got it working.
<br>
<br>
So not too long before another ManifoldLab release. ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (ggaliens)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39145</guid>
			<pubDate>Tue, 30 Jun 2009 18:38:15 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39144/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39144</link>
			<description><![CDATA[ The data I want to draw is fleeting. I don&#39;t expect to have to merge it ... so I&#39;ll try not to worry about that yet ... here&#39;s what I have so far
...
<br>
trying to just witness some calls ... even if I don&#39;t draw anything.
<br>
<br>
<pre>

draw(plain, {es,List}, _D, Selmode) -&gt;
    erlang:display(&quot;dedge draw called !&quot;),
    wings_dl:call(List),
    ok;
draw(_,_,_,_) -&gt; 
    ok.
    
merge_we(_Whatever) -&gt; 
    erlang:display(&quot;Merge Whatever !&quot;),... ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (ggaliens)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39144</guid>
			<pubDate>Tue, 30 Jun 2009 15:52:35 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39135/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39135</link>
			<description><![CDATA[ <blockquote>
  <strong class="quote-title">ggaliens wrote:</strong>
  <hr>
  OK ... so I probably just need to export these two ???
  <br>
  <br>
  <br>
  update_dlist/3,draw/4
  <br>
  <br>
  Correct ???
</blockquote>-export([update_dlist/3, draw/4, <span style="text-decoration: line-through;">get_locked_vs/1,</span> get_data/3, merge_we/1]).
<br>
<br>
update_dlist/3 compiles the gl list, draw/4 is called from wings_render.erl. I used gl_point, added colour, size, alpha... very basic.
<br>... ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (optigon)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39135</guid>
			<pubDate>Tue, 30 Jun 2009 07:52:34 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39123/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39123</link>
			<description><![CDATA[ I have rewritten stuff last week as well and exported a couple of new functions, take a look if
<br>
you need more functions, shout now when I&#39;m inside that part of the code.
<br>
<br> ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (dgud)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39123</guid>
			<pubDate>Mon, 29 Jun 2009 23:44:46 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39118/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39118</link>
			<description><![CDATA[ OK ... so I probably just need to export these two ???
<br>
<br>
<br>
update_dlist/3,draw/4
<br>
<br>
Correct ??? ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (ggaliens)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39118</guid>
			<pubDate>Mon, 29 Jun 2009 17:36:21 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Re: Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/reply/39098/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html#reply-39098</link>
			<description><![CDATA[ You should definitely look at the way wpc_magnet_mask.erl connects with wings to draw masked vertices. I modified a number of core wings files to allow plugins
to draw elements more easily.
<br>
<br>
Basically, you want to store your draw elements in the #dlo record under the plugins=[]. You can see how I did this in wpc_magnet_mask.
<br> ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (optigon)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/sreply/39098</guid>
			<pubDate>Mon, 29 Jun 2009 06:29:07 GMT</pubDate>
			<!-- extensions -->

		</item>
		<item>
			<title><![CDATA[ Need hints how to adapt/hack wings_draw.erl  ]]></title>
			<link>http://nendowingsmirai.yuku.com/topic/6325/t/Need-hints-how-to-adapt-hack-wings-draw-erl.html</link>
			<description><![CDATA[ <div id="refHTML"></div>Need hints how to adapt/hack wings_draw.erl
<br>
<br>
I&#39;m sure I can do again since code base has changed (wpc_ogla is gone).
<br>
<br>
I think there is a PREFERRED and legitimate way for plugins to adapt drawing.
<br>
<br>
I want to be able to draw my &quot;directed edges&quot; once again in the current codebase
<br>
via my plugin(s). My prior approach was to &quot;PATCH&quot; wings_draw, which is of course
<br>
not the best way.
<br>
<br>
So if one of you devs... ]]></description>

			<!-- optional elements -->
			<author>feeds@yuku.com (ggaliens)</author>
			<guid isPermaLink="true">http://nendowingsmirai.yuku.com/topic/6325</guid>
			<pubDate>Mon, 29 Jun 2009 05:50:27 GMT</pubDate>
			<!-- extensions -->

		</item>
    <!-- end items -->

  </channel>
</rss>