Thank you for the response apmcd47. I was beginning to wonder if anyone would reply. However, I'm not trying to make a 3D array. Either that or I have my terminology wrong. What I'm trying to achieve is a 1D array that holds references to 2D arrays and be able to call them.
I believe I've already got them initialized with the code already mentioned:
Which was in this post that was mentioned to. Perhaps Corona688 provide me with a 3D array in that post, but I though (*side[][])[] was different than (*side[][][]), no?
If you know a better way to call lists of two-dimensional arrays I would be more than happy to learn this. However, I'm afraid you may have confused this post with a 3D array instead.
Either way, thank you for the reply!
EDIT: Also curious why you would not recommend C for arrays of 3D or larger? I understand that C supports up to 10 dimensions of arrays, which is more than any other language I know. Perhaps you were making this recommendation due to easy of use? If so, I'm not sure that a higher level language would be good for the rest of my code, but if you have suggestions I would be open to hear which ones.
Hi,
I am trying to assign an array as a value to one of the array element, I mean
I have an array @KS and array @kr.
I want array @KS to hold @kr as an element.
So I am doin this
$KS=@kr;
But the value stored is number of elements in the @kr array.
Can... (2 Replies)
Suppose there are two arrays of arrays:
@A = ( , , , );
@B = ( , , , , );
For each of $A, $A, $A..., I want to find the corresponding one in @B (match the letter, like $A eq $B), and print out both the second item, for example, $A and $B.
How can I do this in perl? grep + map? Hope I... (1 Reply)
PHP question...I posted this on the Web Development forum, but maybe this is a better place!
I have an SQL query that's pulled back user IDs as a set of columns. Rather than IDs, I want to use their names.
So I have an array of columns $col with values 1,7,3,12 etc and I've got an array $person... (3 Replies)
Hi All
I need to get <STDIN> from a user. the <STDIN> is a range of number delimited by "," (comma) and can be with range delimited by "-".
Example: 1,2,3,4-9,12,15,34-36,70
Now I need to get this from the user and go on each number and "Do something"... but when trying to do this as above... (2 Replies)
here is what i have...
i=1
while read line
do
if grep -i-q "create procedure"<<<$line
then
startline="$line"
endline="blahblah"
Get procedure name into a variable named procName
procName="procedure name is stored"
do some... (2 Replies)
hello,
i need a bit of help on how to do this effectively in bash without a lot of extra looping or massive switch/case
i have a long array of M elements and a short array of N elements, so M > N always. M is not a multiple of N.
for case 1, I want to stretch N to fit M
arrayHuge
H = (... (2 Replies)
I hate I'm asking for help again. Unfortunately it seems there just aren't any links I can find on making an array that holds a bunch of two dimensional arrays. Maybe my google-fu is lacking. Basically I have a header file like this:
#define MATRIX 10
int white_l1;
int white_l2;
int... (2 Replies)
Le sigh... Hopefully this will be the last time I have to ask for help on this topic. For a while now I've been working with a 1d array that holds 2d arrays. For reference you can view here. Now I'm just trying to loop through the elements with the following:
#include <stdio.h>
void... (3 Replies)
So I need to Write an array processing program using a Linux shell programming language to perform the following.
Load array X of 20 numbers from an input file X.
Load array Y of 20 numbers from an input file Y.
Compute array Z by multiply Xi * Yi then compute the square-root of this... (2 Replies)
Discussion started by: sarapham409
2 Replies
LEARN ABOUT DEBIAN
vbo_rendering
vbo_rendering(3) Coin vbo_rendering(3)NAME
vbo_rendering - Vertex array and VBO rendering in Coin Coin 2.5 added improved support for OpenGL vertex array and VBO rendering. This
might lead to major rendering performance improvements compared to the old rendering code. The new rendering code has been added for the
SoIndexedFaceSet, SoVRMLIndexedFaceSet, SoIndexedLineSet, SoVRMLIndexedLineSet, SoPointSet and SoVRMLPointSet nodes.
To take advantage of the improved performance vertex array and VBO rendering yields, you'll need to organize your vertex data in a way that
makes it possible to render it with OpenGL vertex arrays. OpenGL vertex array rendering does not support multiple index arrays, so all your
vertex data (coordinates, normals, colors and texture coordinates) must use the same index array; or use OVERALL binding. For the indexed
nodes, this means that PER_VERTEX_INDEXED and OVERALL are the only supported bindings for materials, normals and texture coordinates. When
PER_VERTEX_INDEXED binding is used, the corresponding index field should by empty. This will signal the shape to use the coordIndex field
for indices. Below is an example scene graph that will be rendered using vertex arrays:
NormalBinding { value PER_VERTEX_INDEXED }
Coordinate3 {
point [
0 0 0, # 0
1 0 0, # 1
2 0 0, # 2
0 1 0, # 3
1 1 0, # 4
2 1 0, # 5
0 2 0, # 6
1 2 0, # 7
2 2 0, # 8
2 0 0, # 9
2 0 -1, # 10
2 1 0, # 11
2 1 -1, # 12
2 2 0, # 13
2 2 -1 # 14
]
}
Normal {
vector [
0 0 1, # 0
0 0 1, # 1
0 0 1, # 2
0 0 1, # 3
0 0 1, # 4
0 0 1, # 5
0 0 1, # 6
0 0 1, # 7
0 0 1, # 8
1 0 0, # 9
1 0 0, # 10
1 0 0, # 11
1 0 0, # 12
1 0 0, # 13
1 0 0 # 14
]
}
IndexedFaceSet {
coordIndex [
0, 1, 4, 3, -1,
1, 2, 5, 4, -1,
3, 4, 7, 6, -1,
4, 5, 8, 7, -1,
9, 10, 12, 11, -1,
11, 12, 14, 13, -1
]
normalIndex [ ] # = use coordIndex
}.fi
Please note that since only one index array can be used, it might be necessary to supply duplicate normals and coordinates to meet this requirement.
Also, if normals are needed, you have to supply them. A shape with autogenerated normals can't be rendered using vertex arrays (since a single coordinate might get multiple normals).
The PointSet nodes can always be rendered using vertex arrays since these nodes haven't got index arrays, and the only bindings supported are PER_VERTEX and OVERALL.
If it's inconvenient to create vertex array ready scene graphs directly from your application, it's also possible to use SoReorganizeAction to reorganize the geometry before rendering.
Version 3.1.3 Wed May 23 2012 vbo_rendering(3)