PDA

View Full Version : Tesselator



CRasterImage
10-12-2012, 01:14 PM
In C/C++, OpenGL has a nice library for tesselating complex polygons into triangle strips and fans. That library is "GLUtesselator".

Is there any library with the equivalent functionality for WebGL?

CRasterImage
10-14-2012, 03:55 PM
It seems that nobody can think of a library.

Is there another area of the boards, or another board, that I could try asking at?

greggman
10-15-2012, 10:08 AM
You could try asking on stackexchange.com

CRasterImage
10-15-2012, 10:42 AM
Thanks!

CRasterImage
10-16-2012, 12:25 AM
On stackoverflow.com, Elisée posted an answer to this.

"Three.JS uses a triangulation function to render text to polygons. It is exposed as THREE.Shape.Utils.triangulateShape."

http://threejsdoc.appspot.com/doc/three ... ry.js.html (http://threejsdoc.appspot.com/doc/three.js/src.source/extras/geometries/ExtrudeGeometry.js.html)