net.nexttext.renderer.util
Class Glyph3D

java.lang.Object
  extended by net.nexttext.renderer.util.Glyph3D

public class Glyph3D
extends java.lang.Object

A 3D representation of a glyph object.

Author:
emanuel

Constructor Summary
Glyph3D()
          Constructor.
 
Method Summary
 void addPolygon(ClosedPolygon poly)
          This method adds one closed polygon to the subdivision (it can both be the outer-polygon or the inner) In normal glyphs, the outer should be clockwise and the inner counter-clockwise.
 int getChildIndex()
           
 java.util.Vector<PlanarEdge> getOutline()
           
 processing.core.PVector[] getOutlineNormals()
           
 java.nio.IntBuffer getSurface()
           
 java.util.ArrayList<TriangulationVertex> getVertices()
           
 boolean isEmpty()
           
 void setChildIndex(int index)
           
 void triangulate()
          Triangulate the glyph, but first save the original outline.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Glyph3D

public Glyph3D()
Constructor.

Method Detail

addPolygon

public void addPolygon(ClosedPolygon poly)
This method adds one closed polygon to the subdivision (it can both be the outer-polygon or the inner) In normal glyphs, the outer should be clockwise and the inner counter-clockwise. That is why we add the edges in the opposite order, due to the convention of DoublyConnectedEdgeList.


triangulate

public void triangulate()
Triangulate the glyph, but first save the original outline.


isEmpty

public boolean isEmpty()

getOutline

public java.util.Vector<PlanarEdge> getOutline()

getOutlineNormals

public processing.core.PVector[] getOutlineNormals()

getSurface

public java.nio.IntBuffer getSurface()

getVertices

public java.util.ArrayList<TriangulationVertex> getVertices()

setChildIndex

public void setChildIndex(int index)

getChildIndex

public int getChildIndex()