Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
search for a formula #182247
02/05/08 20:39
02/05/08 20:39
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
does anyone know a formula to create a sphere out of hexagons where either the size of the hexagons dependends on the radius of the sphere or the sphere's size is defined by the size and number of the hexagons.. i guess this formula needs to return the position and rotation of every hexagon(n)

i dont have an idea on how such a formula could look like

Re: search for a formula [Re: ello] #182248
02/05/08 21:22
02/05/08 21:22
Joined: Jan 2003
Posts: 4,305
Damocles Offline
Expert
Damocles  Offline
Expert

Joined: Jan 2003
Posts: 4,305
Are you going into the soccer ball business?


maybe that helps:

http://www.gardendome.com/octa_dome_types.html




Re: search for a formula [Re: Damocles] #182249
02/05/08 21:30
02/05/08 21:30
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
nope

the site is quite interesting. but do i see it right? there is no sphere built only by hexagons?

Re: search for a formula [Re: ello] #182250
02/05/08 22:03
02/05/08 22:03
Joined: Mar 2005
Posts: 969
ch
Loopix Offline
User
Loopix  Offline
User

Joined: Mar 2005
Posts: 969
ch
Quote:

there is no sphere built only by hexagons?




That's right...the closest would be the pentagon (12 pentagons should end up in a closed body...not really a sphere).

Re: search for a formula [Re: Loopix] #182251
02/06/08 07:13
02/06/08 07:13
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
do you have any further information on how such a formula could look like? i want to create it via lite-c... so i guess some kind of pseudo code would do it

Re: search for a formula [Re: ello] #182252
02/06/08 10:43
02/06/08 10:43
Joined: Mar 2005
Posts: 969
ch
Loopix Offline
User
Loopix  Offline
User

Joined: Mar 2005
Posts: 969
ch
I 've skipped too many math lessons

You might find something here

Re: search for a formula [Re: Loopix] #182253
02/06/08 12:29
02/06/08 12:29
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
Quote:

Quote:

there is no sphere built only by hexagons?




That's right...the closest would be the pentagon (12 pentagons should end up in a closed body...not really a sphere).




I guess that's true, but once you've got a 12 pentagon 'sphere' it won't be hard to smoothen the result.

As for the formula, it should be somewhere on the internet for sure, I'll do some searching later today if I don't forget,

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Re: search for a formula [Re: PHeMoX] #182254
02/06/08 13:33
02/06/08 13:33
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
why do you need this?

you could download the source code of programs like blender or wings3d and look where the icosphere primitives get generated in the code.

Re: search for a formula [Re: ventilator] #182255
02/06/08 13:56
02/06/08 13:56
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
Quote:

why do you need this?




i just thought about having a ball out of such objects (hexagon or pentagon doesnt really matter for me) would look cool and allow some fun

Quote:

you could download the source code of programs like blender or wings3d and look where the icosphere primitives get generated in the code.



i guess i wouldnt even find the lines where this happens

Re: search for a formula [Re: ello] #182256
02/06/08 14:13
02/06/08 14:13
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
It's this function in the Blender source-code, but I couldn't find it:

Code:
IcoSphere(float, int, Appearance)



Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1