Java Doc for Stripifier.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.Stripifier

Stripifier
public class Stripifier (Code)
The Stripifier utility will change the primitive of the GeometryInfo object to Triangle Strips. The strips are made by analyzing the triangles in the original data and connecting them together.

Normal Generation should be performed on the GeometryInfo object before Stripification, for best results. Example:

 GeometryInfo gi = new GeometryInfo(TRIANGLE_ARRAY);
 gi.setCoordinates(coordinateData);
 NormalGenerator ng = new NormalGenerator();
 ng.generateNormals(gi);
 Stripifier st = new Stripifier()
 st.stripify(gi);
 Shape3D part = new Shape3D();
 part.setAppearance(appearance);
 part.setGeometry(gi.getGeometryArray());
 

Inner Class :class Vertex
Inner Class :class Edge
Inner Class :class Face
Inner Class :class Node
Inner Class :class SortedList
Inner Class :class Istream

Field Summary
final  booleanCHECK_ORIENT
    
final public static  intCOLLECT_STATS
    
final  booleanDEBUG
    
final static  intEMPTY
    
 booleancolorStrips
    
 booleanhasColors
    
 booleanhasNormals
    
 booleanhasTextures
    
 int[]numNhbrs
    
 StripifierStatsstats
    
 inttexSetCount
    

Constructor Summary
public  Stripifier()
     Creates the Stripifier object.
public  Stripifier(int flags)
     Creates the Stripifier object.

Method Summary
 voidbuildAdjacencies(Edge[] edges, Face[] faces)
    
 booleancheckOrientCCWSeq(Vertex last, Vertex prev, Face face)
    
 booleancheckOrientCWSeq(Vertex last, Vertex prev, Face face)
    
 voidconcatenate(ArrayList strips, Face[] faces)
     joins tristrips if their end triangles neighbor each other.
 Edge[]createEdgeArray(Face[] faces)
     Creates an array of edges from the Face array.
 Face[]createFaceArray(GeometryInfo gi)
     Creates an array of faces from the geometry in the GeometryInfo object.
 Node[]dfSearch(Face[] faces, Node[] faceNodes)
    
 intfindNext(Node node, Node[] faceNodes, Face[] faces)
    
 voidfreeNhbrTable()
    
 FacegetNextFace(ArrayList currStrip, int index)
    
public  StripifierStatsgetStripifierStats()
     Returns the stripifier stats object.
 ArrayListhamilton(Node[] sTree, int[] numStrips, int[] numPatches)
     generates hamiltonian strips from the derived binary spanning tree using the path peeling algorithm to peel off any node wiht double children in a bottom up fashion.
 Node[]hybridSearch(Face[] faces, Node[] faceNodes)
     Takes a list of faces as input and performs a hybrid search, a variated depth first search that returns to the highest level node not yet fully explored.
 booleanorientSeq(boolean ccw, Istream stream, Face face)
    
 booleanorientZAT(boolean ccw, Istream stream, Face face)
    
 voidputBackData(GeometryInfo gi, ArrayList strips)
    
 voidquickSortEdges(Edge[] edges, int l, int r)
    
 voidreduceCostByOne(ArrayList strips, Face[] faces, int[] faceTable)
    
 voidreduceCostByTwo(ArrayList strips, Face[] faces, int[] faceTable)
    
 voidreduceCostByZero(ArrayList strips, Face[] faces, int[] faceTable)
    
 intresetNhbr(int y, Face[] faces, Node[] faceNodes)
    
 booleanseq(Istream stream, Face face, int share)
    
 voidsetNumNhbrs(Face[] faces)
    
 voidsortEdges(Edge[] edges)
    
 booleanstripDone(ArrayList strip, int count)
    
 ArrayListstripe(ArrayList strips)
    
public  voidstripify(GeometryInfo gi)
     Converts the geometry contained in the GeometryInfo object into an array of triangle strips.
 voidupdateNumNhbrs(Node node)
    

Field Detail
CHECK_ORIENT
final boolean CHECK_ORIENT(Code)



COLLECT_STATS
final public static int COLLECT_STATS(Code)
Indicates to the stripifier to collect statistics on the data



DEBUG
final boolean DEBUG(Code)



EMPTY
final static int EMPTY(Code)



colorStrips
boolean colorStrips(Code)



hasColors
boolean hasColors(Code)



hasNormals
boolean hasNormals(Code)



hasTextures
boolean hasTextures(Code)



numNhbrs
int[] numNhbrs(Code)



stats
StripifierStats stats(Code)



texSetCount
int texSetCount(Code)




Constructor Detail
Stripifier
public Stripifier()(Code)
Creates the Stripifier object.



Stripifier
public Stripifier(int flags)(Code)
Creates the Stripifier object.
Parameters:
  flags - Flags
since:
   Java 3D 1.2.1




Method Detail
buildAdjacencies
void buildAdjacencies(Edge[] edges, Face[] faces)(Code)
Builds the adjacency graph by finding the neighbors of the edges



checkOrientCCWSeq
boolean checkOrientCCWSeq(Vertex last, Vertex prev, Face face)(Code)



checkOrientCWSeq
boolean checkOrientCWSeq(Vertex last, Vertex prev, Face face)(Code)



concatenate
void concatenate(ArrayList strips, Face[] faces)(Code)
joins tristrips if their end triangles neighbor each other. The priority is performed in three stages: strips are concatenated to save 2, 1, or no vertices



createEdgeArray
Edge[] createEdgeArray(Face[] faces)(Code)
Creates an array of edges from the Face array.



createFaceArray
Face[] createFaceArray(GeometryInfo gi)(Code)
Creates an array of faces from the geometry in the GeometryInfo object.



dfSearch
Node[] dfSearch(Face[] faces, Node[] faceNodes)(Code)



findNext
int findNext(Node node, Node[] faceNodes, Face[] faces)(Code)



freeNhbrTable
void freeNhbrTable()(Code)



getNextFace
Face getNextFace(ArrayList currStrip, int index)(Code)



getStripifierStats
public StripifierStats getStripifierStats()(Code)
Returns the stripifier stats object.
exception:
  IllegalStateException - if the Stripfier has notbeen constructedwith the COLLECT_STATS flag
since:
   Java 3D 1.2.1



hamilton
ArrayList hamilton(Node[] sTree, int[] numStrips, int[] numPatches)(Code)
generates hamiltonian strips from the derived binary spanning tree using the path peeling algorithm to peel off any node wiht double children in a bottom up fashion. Returns a Vector of strips. Also return the number of strips and patches in the numStrips and numPatches "pointers"



hybridSearch
Node[] hybridSearch(Face[] faces, Node[] faceNodes)(Code)
Takes a list of faces as input and performs a hybrid search, a variated depth first search that returns to the highest level node not yet fully explored. Returns an array of pointers to the faces found in order from the search. The faceNodes parameter is an array of the Nodes created for the faces.



orientSeq
boolean orientSeq(boolean ccw, Istream stream, Face face)(Code)



orientZAT
boolean orientZAT(boolean ccw, Istream stream, Face face)(Code)



putBackData
void putBackData(GeometryInfo gi, ArrayList strips)(Code)
puts the stripified data back into the GeometryInfo object



quickSortEdges
void quickSortEdges(Edge[] edges, int l, int r)(Code)
uses quicksort to sort the edges



reduceCostByOne
void reduceCostByOne(ArrayList strips, Face[] faces, int[] faceTable)(Code)
find all links that reduce cost by 1



reduceCostByTwo
void reduceCostByTwo(ArrayList strips, Face[] faces, int[] faceTable)(Code)
find all the links that reduce the cost by 2



reduceCostByZero
void reduceCostByZero(ArrayList strips, Face[] faces, int[] faceTable)(Code)
find all the links that reduce the cost by 0



resetNhbr
int resetNhbr(int y, Face[] faces, Node[] faceNodes)(Code)



seq
boolean seq(Istream stream, Face face, int share)(Code)



setNumNhbrs
void setNumNhbrs(Face[] faces)(Code)



sortEdges
void sortEdges(Edge[] edges)(Code)
Sorts the edges using BubbleSort



stripDone
boolean stripDone(ArrayList strip, int count)(Code)



stripe
ArrayList stripe(ArrayList strips)(Code)
creates the triangle strips



stripify
public void stripify(GeometryInfo gi)(Code)
Converts the geometry contained in the GeometryInfo object into an array of triangle strips.



updateNumNhbrs
void updateNumNhbrs(Node node)(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.