<?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>237</bug_id>
          
          <creation_ts>2006-07-09 10:32:51 +0200</creation_ts>
          <short_desc>GLU: GLUtessellator callback is mixing up vertexData</short_desc>
          <delta_ts>2010-03-24 07:49:23 +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>253</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:49:23 +0100</bug_when>
    <thetext>


---- Reported by aaronanderson 2006-07-09 22:32:51 ----

I am using the GLU tessellation functionality. The callback is registered as so:

glu.gluTessCallback(tesselator, GLU.GLU_TESS_VERTEX_DATA, fontTesselator);
glu.gluTessCallback(tesselator, GLU.GLU_TESS_COMBINE_DATA, fontTesselator);
glu.gluTessCallback(tesselator, GLU.GLU_TESS_ERROR_DATA, fontTesselator);
glu.gluTessCallback(tesselator, GLU.GLU_TESS_EDGE_FLAG_DATA, fontTesselator);


For every vertex I call the GLU Tess Vertex method(vertexData is a double[] 
size 3)

glu.gluTessVertex(tesselator, vertexData,0, new Integer(-1));

However, in my callback when the vertexData callback is invoked:
 public void vertexData(Object vertexData, Object userData) {

vertexData holds the Integer value passed in as the userData in the original 
gluTessVertex call and userData is always null.



---- Additional Comments From kbr 2006-07-10 00:24:27 ----

I am unable to reproduce this problem by modifying the Tess.java example in the
jogl-demos package appropriately. The vertexData callback is always called
correctly. I suspect the submitter is confusing the vertexData and combineData
callbacks. It seems that the only way to usefully use the combineData callback
is to pass the vertex&apos;s coordinates as its own data. In the future please post
issues like these to the forums first before filing bugs so others can comment
on them.




---- Additional Comments From aaronanderson 2006-07-12 13:01:59 ----

I had confused vertexData with polygonData and coordinates. I apologize for the 
errant issue.



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

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

    </bug>

</bugzilla>