-
Help initialize 3-dim array with for loop please
Hello,
I want to do the following:
double V[][] = sphere.V2;
double polygon[][][] = {
{ V[0], V[1], V[2] },
{ V[1], V[2], V[3] },
{ V[2], V[3], V[4] },
{ V[3], V[4], V[5] },
{ V[4], V[5], V[6] },
.
.
.
{ V[124], V[125], V[126] },
};
How can I set up a loop to initialize the values of polygon so that I dont have to type it all out?
Thanx a lot
-Big_Goon
-
i can't make sense of this v is 2 dimensional and you call on it as 1 dimensional , sry if i misunderstood.
¿Red Baron?
[code] /* dont forget code tags! */ [/code]
Come visit the Café!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks