<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>236</bug_id>
          
          <creation_ts>2006-07-09 09:38:44 +0200</creation_ts>
          <short_desc>GLUtessellatorCallback: how to return userData for new combine point</short_desc>
          <delta_ts>2010-03-24 07:49:21 +0100</delta_ts>
          <reporter_accessible>0</reporter_accessible>
          <cclist_accessible>0</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>252</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:49:21 +0100</bug_when>
    <thetext>


---- Reported by aaronanderson 2006-07-09 21:38:44 ----

There are possibly two methods on a GLUtessellatorCallback implementation that 
may be invoked when a new vertex is introduced by the GLU Tesselator:

void combine(double[] coords, Object[] data, float[] weight, Object[] outData) 
void combineData(double[] coords, Object[] data, float[] weight, Object[] 
outData, Object polygonData) 

According to the C GLU routine the last parameter in the method is a pointer a 
new userData object created by the callback that is to be associated with the 
vertex. Since Java uses pass by reference there seems to be no way to associate 
a user defined object with the new vertex thus rendering this parameter useless.



---- Additional Comments From kbr 2006-07-10 00:05:33 ----

The outgoing polygonData object is not allocated by the callback, but is
equivalent to the data passed in to gluTessBeginPolygon when it was called. This
is clearly specified in the C API. The new vertex&apos;s location is allocated by the
callback and is passed out as the first element of the outData array. The
demos.tess.Tess demo in the jogl-demos project clearly shows how to use the
combine callback.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:49 EDT  ---

This bug was previously known as _bug_ 236 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=236
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>