Java Doc for Triangulator.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » utils » geometry » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » com.sun.j3d.utils.geometry 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.utils.geometry.Triangulator

Triangulator
public class Triangulator extends Object (Code)
Triangulator is a utility for turning arbitrary polygons into triangles so they can be rendered by Java 3D. Polygons can be concave, nonplanar, and can contain holes.
See Also:   GeometryInfo


Field Summary
final static  intEARS_RANDOM
    
final static  intEARS_SEQUENCE
    
final static  intEARS_SORTED
    
final static  intINC_DIST_BK
    
final static  intINC_LIST_BK
    
final static  intINC_LOOP_BK
    
final static  intINC_POINT_BK
    
final static  intINC_TRI_BK
    
final static  doubleZERO
    
 booleanccwLoop
    
 intchains
    
 Objectcolors
    
 Distancedistances
    
 booleanearsRandom
    
 booleanearsSorted
    
 doubleepsilon
    
 intfaces
    
 intfirstNode
    
 GeometryInfogInfo
    
 HeapNodeheap
    
 intidentCntr
    
 LeftleftMost
    
 ListNodelist
    
 intloopMinloopMax
    
 intloops
    
 intmaxNumChains
    
 intmaxNumDist
    
 intmaxNumHeap
    
 intmaxNumLeftMost
    
 intmaxNumList
    
 intmaxNumLoops
    
 intmaxNumPUnsorted
    
 intmaxNumPoints
    
 intmaxNumPolyArea
    
 intmaxNumTriangles
    
 booleannoHashingEdges
    
 booleannoHashingPnts
    
 Vector3fnormals
    
 intnumChains
    
 intnumFaces
    
 intnumHeap
    
 intnumList
    
 intnumLoops
    
 intnumPoints
    
 intnumReflex
    
 intnumTexSets
    
 intnumTriangles
    
 intnumVtxList
    
 intnumZero
    
 Point2f[]pUnsorted
    
 Point2fpoints
    
 doublepolyArea
    
 RandomrandomGen
    
 intreflexVertices
    
 intstripCounts
    
 Triangletriangles
    
 intvertexIndices
    
 Point3fvertices
    
 PntNodevtxList
    

Constructor Summary
public  Triangulator()
     Creates a new instance of the Triangulator.
public  Triangulator(int earOrder)
     Creates a new instance of a Triangulator.

Method Summary
 voiddeleteHook(int currLoop)
    
 voiddeleteLinks(int ind)
    
 intfetchData(int ind1)
    
 intfetchNextData(int ind1)
     Returns pointer to the successor of ind1.
 intfetchPrevData(int ind1)
     returns pointer to the successor of ind1.
 intgetAngle(int ind)
    
 intgetNextChain(boolean[] done)
    
 intgetNode()
    
 booleaninLoopList(int loop)
    
 booleaninPointsList(int index)
    
 booleaninPolyList(int ind)
    
 voidinitPnts(int number)
    
 voidinsertAfter(int ind1, int ind2)
     Inserts node ind2 after node ind1.
 intmakeHook()
     Allocates storage for a dummy list node; pointers are set to itself.
 intmakeLoopHeader()
    
 intmakeNode(int index)
     Allocates storage for a new list node, and stores the index of the point at this node.
 voidpreProcessList(int i1)
    
 voidprintListData()
    
 voidprintVtxList()
    
 voidresetPolyList(int ind)
    
 voidrotateLinks(int ind1, int ind2)
    
 voidsetAngle(int ind, int convex)
    
 voidsetEpsilon(double eps)
    
 voidsplitSplice(int ind1, int ind2, int ind3, int ind4)
    
 voidstoreChain(int ind)
    
 intstorePoint(double x, double y)
    
 voidstoreTriangle(int i, int j, int k)
    
 voidswapLinks(int ind1)
     swap the list pointers in order to change the orientation.
public  voidtriangulate(GeometryInfo gi)
     This routine converts the GeometryInfo object from primitive type POLYGON_ARRAY to primitive type TRIANGLE_ARRAY using polygon decomposition techniques.
 voidupdateIndex(int ind, int index)
    
 voidwriteTriangleToGeomInfo()
    

Field Detail
EARS_RANDOM
final static int EARS_RANDOM(Code)



EARS_SEQUENCE
final static int EARS_SEQUENCE(Code)



EARS_SORTED
final static int EARS_SORTED(Code)



INC_DIST_BK
final static int INC_DIST_BK(Code)



INC_LIST_BK
final static int INC_LIST_BK(Code)



INC_LOOP_BK
final static int INC_LOOP_BK(Code)



INC_POINT_BK
final static int INC_POINT_BK(Code)



INC_TRI_BK
final static int INC_TRI_BK(Code)



ZERO
final static double ZERO(Code)



ccwLoop
boolean ccwLoop(Code)



chains
int chains(Code)



colors
Object colors(Code)



distances
Distance distances(Code)



earsRandom
boolean earsRandom(Code)



earsSorted
boolean earsSorted(Code)



epsilon
double epsilon(Code)



faces
int faces(Code)



firstNode
int firstNode(Code)



gInfo
GeometryInfo gInfo(Code)



heap
HeapNode heap(Code)



identCntr
int identCntr(Code)



leftMost
Left leftMost(Code)



list
ListNode list(Code)



loopMinloopMax
int loopMinloopMax(Code)



loops
int loops(Code)



maxNumChains
int maxNumChains(Code)



maxNumDist
int maxNumDist(Code)



maxNumHeap
int maxNumHeap(Code)



maxNumLeftMost
int maxNumLeftMost(Code)



maxNumList
int maxNumList(Code)



maxNumLoops
int maxNumLoops(Code)



maxNumPUnsorted
int maxNumPUnsorted(Code)



maxNumPoints
int maxNumPoints(Code)



maxNumPolyArea
int maxNumPolyArea(Code)



maxNumTriangles
int maxNumTriangles(Code)



noHashingEdges
boolean noHashingEdges(Code)



noHashingPnts
boolean noHashingPnts(Code)



normals
Vector3f normals(Code)



numChains
int numChains(Code)



numFaces
int numFaces(Code)



numHeap
int numHeap(Code)



numList
int numList(Code)



numLoops
int numLoops(Code)



numPoints
int numPoints(Code)



numReflex
int numReflex(Code)



numTexSets
int numTexSets(Code)



numTriangles
int numTriangles(Code)



numVtxList
int numVtxList(Code)



numZero
int numZero(Code)



pUnsorted
Point2f[] pUnsorted(Code)



points
Point2f points(Code)



polyArea
double polyArea(Code)



randomGen
Random randomGen(Code)



reflexVertices
int reflexVertices(Code)



stripCounts
int stripCounts(Code)



triangles
Triangle triangles(Code)



vertexIndices
int vertexIndices(Code)



vertices
Point3f vertices(Code)



vtxList
PntNode vtxList(Code)




Constructor Detail
Triangulator
public Triangulator()(Code)
Creates a new instance of the Triangulator.



Triangulator
public Triangulator(int earOrder)(Code)
Creates a new instance of a Triangulator.




Method Detail
deleteHook
void deleteHook(int currLoop)(Code)



deleteLinks
void deleteLinks(int ind)(Code)
Deletes node ind from list (with destroying its data fields)



fetchData
int fetchData(int ind1)(Code)
obtains the data store at ind1



fetchNextData
int fetchNextData(int ind1)(Code)
Returns pointer to the successor of ind1.



fetchPrevData
int fetchPrevData(int ind1)(Code)
returns pointer to the successor of ind1.



getAngle
int getAngle(int ind)(Code)



getNextChain
int getNextChain(boolean[] done)(Code)



getNode
int getNode()(Code)



inLoopList
boolean inLoopList(int loop)(Code)



inPointsList
boolean inPointsList(int index)(Code)



inPolyList
boolean inPolyList(int ind)(Code)



initPnts
void initPnts(int number)(Code)



insertAfter
void insertAfter(int ind1, int ind2)(Code)
Inserts node ind2 after node ind1.



makeHook
int makeHook()(Code)
Allocates storage for a dummy list node; pointers are set to itself. pointer to node



makeLoopHeader
int makeLoopHeader()(Code)



makeNode
int makeNode(int index)(Code)
Allocates storage for a new list node, and stores the index of the point at this node. Pointers are set to -1. pointer to node



preProcessList
void preProcessList(int i1)(Code)



printListData
void printListData()(Code)



printVtxList
void printVtxList()(Code)



resetPolyList
void resetPolyList(int ind)(Code)



rotateLinks
void rotateLinks(int ind1, int ind2)(Code)



setAngle
void setAngle(int ind, int convex)(Code)



setEpsilon
void setEpsilon(double eps)(Code)



splitSplice
void splitSplice(int ind1, int ind2, int ind3, int ind4)(Code)



storeChain
void storeChain(int ind)(Code)



storePoint
int storePoint(double x, double y)(Code)



storeTriangle
void storeTriangle(int i, int j, int k)(Code)



swapLinks
void swapLinks(int ind1)(Code)
swap the list pointers in order to change the orientation.



triangulate
public void triangulate(GeometryInfo gi)(Code)
This routine converts the GeometryInfo object from primitive type POLYGON_ARRAY to primitive type TRIANGLE_ARRAY using polygon decomposition techniques.

 Example of usage:
 Triangulator tr = new Triangulator();
 tr.triangulate(ginfo); // ginfo contains the geometry.
 shape.setGeometry(ginfo.getGeometryArray()); // shape is a Shape3D.
 


Parameters:
  gi - Geometry to be triangulated



updateIndex
void updateIndex(int ind, int index)(Code)



writeTriangleToGeomInfo
void writeTriangleToGeomInfo()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.