# Optimized triangle list

**URL:** <https://forums.imgtec.com/t/optimized-triangle-list/188>\
**Category:** PowerVR Insider\
**Created:** [November 21, 2008, 6:24am UTC](https://forums.imgtec.com/t/optimized-triangle-list/188 "2008-11-21T06:24:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyes](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@lyes](https://forums.imgtec.com/u/lyes)\
**Post date:** [November 21, 2008, 6:24am UTC](https://forums.imgtec.com/t/optimized-triangle-list/188/1 "2008-11-21T06:24:02Z")

</div>

Is there any information how to prepare the vertices data so they&nbsp;would be optimized ? We have here custom toolchain and we&nbsp;would like to implement this feature.

&nbsp;
  

&nbsp;

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [November 24, 2008, 4:15pm UTC](https://forums.imgtec.com/t/optimized-triangle-list/188/2 "2008-11-24T16:15:49Z")

</div>

We have functions to optimise triangle lists in our SDK (which you can download from POWERVR insider). Look in&nbsp;PowerVRSDKToolsPVRTTriStrip.cpp and PowerVRSDKToolsPVRTGeometry.cpp

&nbsp;
  

Regards.
  

&nbsp;
  

Carlos.

---

<div class="post-metadata">

**Author:** ![lyes](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@lyes](https://forums.imgtec.com/u/lyes)\
**Post date:** [December 1, 2008, 7:58am UTC](https://forums.imgtec.com/t/optimized-triangle-list/188/3 "2008-12-01T07:58:54Z")

</div>

Thank you, however, i have a problem using PVRTTriStripList( ); the function seems to hang in a loop for ever&nbsp;into the stripping process&nbsp; (void CStrip::StripFromEdges())

&nbsp;
  

when i use one of our model, the model is 92 triangles (276 indices unsigned short), i have checked that there is no dead triangle with 2 or 3 points with the same index, everything looks fine...so any idea how we could fix it ? 
  

&nbsp;
  

If you want to&nbsp;experiment yourself, i can forward you the list of indices in small binary data (552 bytes).

---

<div class="post-metadata">

**Author:** ![lyes](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@lyes](https://forums.imgtec.com/u/lyes)\
**Post date:** [December 1, 2008, 8:14am UTC](https://forums.imgtec.com/t/optimized-triangle-list/188/4 "2008-12-01T08:14:25Z")

</div>

Maybe an hint, it seems to loop for ever, if we have a triangle A,B,C along with a triangle B,A,C into the list…

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [December 2, 2008, 3:03pm UTC](https://forums.imgtec.com/t/optimized-triangle-list/188/5 "2008-12-02T15:03:39Z")

</div>

Iyes,

&nbsp;
  

This sounds like a bug we have not seen before. We'll try to replicate it.
  

I'll let you know if we find the problem.
  

Can you workaround this problem or you require the fix?
  

&nbsp;
  

Regards.
  

&nbsp;
  

Carlos.

---

<div class="post-metadata">

**Author:** ![CarlosSarria](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/carlossarria/32/263_2.png) [@CarlosSarria](https://forums.imgtec.com/u/CarlosSarria)\
**Post date:** [December 2, 2008, 3:26pm UTC](https://forums.imgtec.com/t/optimized-triangle-list/188/6 "2008-12-02T15:26:26Z")

</div>

Hello,

&nbsp;
  

We cannot reproduce the problem as you describe it. Could you send an example that goes wrong to [devtech@imgtec.com](mailto:devtech@imgtec.com)?
  

&nbsp;
  

Thanks.
  

&nbsp;
  

Carlos.
