Results 1 to 5 of 5
- 02-24-2012, 10:21 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 31
- Rep Power
- 0
Most efficient data structure for a 3d model?
Hey guys,
So, I've used JOGL before, and now I'm trying to make a program where I use my own model class- a simple class storing a set of 3d points and all the points they are connected to. What is the most efficient data structure to store those points in considering that to render a model I'm planning on iterating through the entire thing, drawing each triangle formed by the vertex connections; an prototype model class I made used arrays since accessing each vertex has O(1) but I wasn't sure if Java had something better suited or if there was a datastruc better suited- any thoughts would be hugely appreciated!
- 02-24-2012, 11:34 PM #2
Re: Most efficient data structure for a 3d model?
A simple class with the three points and an arraylist of the connections.
- 02-26-2012, 04:24 PM #3
Member
- Join Date
- Sep 2010
- Posts
- 31
- Rep Power
- 0
Re: Most efficient data structure for a 3d model?
So, I'm assuming that's for a single triangle since you said three points; should I just do something similar for all those triangles (array/arraylist)?
Thanks
- 02-26-2012, 05:20 PM #4
Re: Most efficient data structure for a 3d model?
The class could contain all the data needed for a point and then a list of the points it connects to.
- 02-26-2012, 05:21 PM #5
Member
- Join Date
- Sep 2010
- Posts
- 31
- Rep Power
- 0
Similar Threads
-
What is the most efficient data structure for storing possibly upto thousands of ...
By oontvoo in forum Advanced JavaReplies: 4Last Post: 08-05-2011, 04:10 PM -
Which data structure to use?
By malaguena in forum New To JavaReplies: 4Last Post: 04-05-2011, 04:41 PM -
deleting the data in the column model
By bigj in forum New To JavaReplies: 0Last Post: 02-08-2010, 08:15 AM -
Dynamic data model in JComboBox
By agreed in forum AWT / SwingReplies: 5Last Post: 11-15-2009, 08:30 PM -
data structure and data base??
By ahmed13 in forum Advanced JavaReplies: 8Last Post: 03-27-2009, 05:48 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks