Package org.oscim.utils
Class TessJNI
java.lang.Object
org.oscim.utils.TessJNI
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classSee OpenGL Red Book for description of the winding rules http://www.glprogramming.com/red/chapter11.html -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContour2D(float[] points) voidaddContour2D(float[] points, int offset, int length) voidaddContour2D(int[] index, float[] contour) voidaddContour2D(int[] index, float[] contour, int idxStart, int idxEnd) voiddispose()protected voidfinalize()intvoidgetElements(int[] out, int offset, int length) voidgetElements(short[] out, int offset, int length) voidgetElementsWithInputVertexIds(short[] dst, int dstOffset, int offset, int length) intvoidgetVertexIndices(int[] out, int offset, int length) voidgetVertices(float[] out, int offset, int length) voidgetVertices(short[] out, int offset, int length, float scale) protected longinstance()booleanbooleantesselate(int windingRule, int elementType)
-
Constructor Details
-
TessJNI
public TessJNI() -
TessJNI
public TessJNI(int bucketSize)
-
-
Method Details
-
finalize
protected void finalize() -
dispose
public void dispose() -
instance
protected long instance() -
addContour2D
public void addContour2D(float[] points) -
addContour2D
public void addContour2D(float[] points, int offset, int length) -
addContour2D
public void addContour2D(int[] index, float[] contour) -
addContour2D
public void addContour2D(int[] index, float[] contour, int idxStart, int idxEnd) -
tesselate
public boolean tesselate() -
tesselate
public boolean tesselate(int windingRule, int elementType) -
getVertexCount
public int getVertexCount() -
getElementCount
public int getElementCount() -
getVertices
public void getVertices(float[] out, int offset, int length) -
getVertices
public void getVertices(short[] out, int offset, int length, float scale) -
getElements
public void getElements(int[] out, int offset, int length) -
getElements
public void getElements(short[] out, int offset, int length) -
getVertexIndices
public void getVertexIndices(int[] out, int offset, int length) -
getElementsWithInputVertexIds
public void getElementsWithInputVertexIds(short[] dst, int dstOffset, int offset, int length)
-