<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[collidercache]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 01/11/2002 at 12:49, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">User Information:<br />
Cinema 4D Version:   8.012 <br />
Platform:   Windows  ; Mac  ;  Mac OSX  ; <br />
Language(s) :     C++  ;</p>
<p dir="auto">---------<br />
im trying to use the collidercache lib<br />
 <br />
AutoAlloc&lt;GeColliderCache&gt; o1; if (!o1) return NULL;<br />
Bool result=FillColliderCache(*o1,*surface);<br />
this seems pretty  simple, however the code in the docs describing a FillColliderCache function doesnt work.<br />
 <br />
it  get to<br />
AutoAlloc&lt;PolygonObject&gt; poly(static_cast&lt;PolygonObject*&gt;(md2.op));<br />
then it breaks because  of error<br />
 error C2664: '__thiscall AutoAlloc&lt;class PolygonObject&gt;::AutoAlloc&lt;class PolygonObject&gt;(long)' : cannot convert parameter 1 from 'class PolygonObject *' to 'long'<br />
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast<br />
 <br />
er , whats he on about ?<br />
<img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
cheers<br />
 <br />
Paul</p>
]]></description><link>http://developers.maxon.net/forum/topic/784/97_collidercache</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 01:17:54 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/784.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 May 2018 16:46:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to collidercache on Wed, 09 May 2018 16:46:36 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 02/11/2002 at 04:10, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">thanks Mikael<br />
<img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>http://developers.maxon.net/forum/post/3824</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/3824</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 16:46:36 GMT</pubDate></item><item><title><![CDATA[Reply to collidercache on Wed, 09 May 2018 16:46:35 GMT]]></title><description><![CDATA[<p dir="auto"><em><strong>THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED</strong></em></p>
<p dir="auto"><em>On 01/11/2002 at 13:07, <strong>xxxxxxxx</strong> wrote:</em></p>
<blockquote>
<p dir="auto"><strong>Quote:</strong> <em>Originally posted by Paul Everett on 01  November 2002</em><br />
&gt;<br />
&gt; * * *<br />
&gt;<br />
&gt;  error C2664: '__thiscall AutoAlloc&lt;class PolygonObject&gt;::AutoAlloc&lt;class PolygonObject&gt;(long)' : cannot convert parameter 1 from 'class PolygonObject *' to 'long'<br />
&gt;         This conversion requires a reinterpret_cast, a C-style cast or function-style cast<br />
Sorry, this code used one of my proposed changes to AutoAlloc that was never added officially. To use AutoAlloc in this way you'll have to add this constructor:</p>
</blockquote>
<pre><code>    
    
    template &lt;class TYPE&gt; class AutoAlloc  
    {  
        TYPE *ptr;  
      
      public:  
     **     AutoAlloc(TYPE* initptr) { ptr = initptr; }  
    **  
        AutoAlloc()           { ptr = TYPE::Alloc(); }  
        AutoAlloc(LONG id)    { ptr = TYPE::Alloc(id); }  
        AutoAlloc(LONG p1, LONG p2)   { ptr = TYPE::Alloc(p1,p2); }  
        ~AutoAlloc()          { TYPE::Free(ptr); ptr = NULL; }  
        operator TYPE* ()     { return ptr; }  
        operator TYPE&amp; ()     { return *ptr; }  
        TYPE *operator -&gt; ()  { return ptr; }  
        TYPE *const *operator &amp; ()  { return &amp;ptr; }  
        TYPE *Release() { TYPE *tmp=ptr; ptr=NULL; return tmp; }  
    };
</code></pre>
]]></description><link>http://developers.maxon.net/forum/post/3823</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/3823</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Wed, 09 May 2018 16:46:35 GMT</pubDate></item></channel></rss>