|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Not finished yet, I think it has potential. Anyone want my spaghetti
code?
--
Dan Johnson
http://www.geocities.com/zapob
Post a reply to this message
Attachments:
Download 'geodesic.jpg' (124 KB)
Preview of image 'geodesic.jpg'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I was playing with geodesics last week... what does your setup do?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Bill DeWitt wrote:
>
> I was playing with geodesics last week... what does your setup do?
The basic function takes three points two define a spherical triangle.
Then it divides each of the sides evenly by a number you specify, and
stores them in a two dimensional array.
x
|\
x-x
|\|\
x-x-x
|\|\|\
x-x-x-x
|\|\|\|\
x-x-x-x-x
The x's are points in the array, and the lines represent how a function
might access the array to find the points of a triangle or edges. I use
lots of little functions. One to find points, one to store them in an
array, one to find edges. I only generate 1/20 of the sphere, and then
rotate it to complete the job. It also builds an octahedron -
tetrahedron spaceframe onto the group of triangles. My translation
functions should be able to handle struts other than cylinders
appropriately, so I am trying to think about what I want to replace them
with.
--
Dan Johnson
http://www.geocities.com/zapob
Post a reply to this message
Attachments:
Download 'geo_patch.jpg' (33 KB)
Preview of image 'geo_patch.jpg'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
That looks really good!
I once read the maths behind geodesic domes, but never got round to actually
trying it. I'd definitely like to see your source.
--
Tek
http://www.evilsuperbrain.com
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Dan Johnson" <zap### [at] hotmailcom> wrote :
> My translation
> functions should be able to handle struts other than cylinders
> appropriately, so I am trying to think about what I want to replace them
> with.
What I want to be able to get is something that will divide a solid
sphere into triangles (actually pyramids) so that you have each part go down
to a little point in the center of the sphere.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Bill DeWitt wrote:
>
> "Dan Johnson" <zap### [at] hotmailcom> wrote :
> > My translation
> > functions should be able to handle struts other than cylinders
> > appropriately, so I am trying to think about what I want to replace them
> > with.
>
> What I want to be able to get is something that will divide a solid
> sphere into triangles (actually pyramids) so that you have each part go down
> to a little point in the center of the sphere.
Do you want the face of the pyramid on the surface to be a curve or a
flat face? What do you want to do with the pyramids after you have
them? Do you want them to be csg solids, or triangles, or a solid
triangle mesh? I could probably adapt my code to do what you want if
you could be specific.
--
Dan Johnson
http://www.geocities.com/zapob
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Dan Johnson" <zap### [at] hotmailcom> wrote :
>
> I could probably adapt my code to do what you want if
> you could be specific.
What I really want to do is subdivide an isosurface made with a map of
the Earth so that I can explode it along the geodesics then re-assemble it.
I can do it with a dodecahedron (12 parts?) but I want to do it in much
smaller sections and I don't know how (whimper).
I would appreciate any help but please don't go too far out of your way.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Bill DeWitt wrote:
>
> "Dan Johnson" <zap### [at] hotmailcom> wrote :
> >
> > I could probably adapt my code to do what you want if
> > you could be specific.
>
> What I really want to do is subdivide an isosurface made with a map of
> the Earth so that I can explode it along the geodesics then re-assemble it.
> I can do it with a dodecahedron (12 parts?) but I want to do it in much
> smaller sections and I don't know how (whimper).
>
> I would appreciate any help but please don't go too far out of your way.
I was going to try, and do that, but the code is being stubborn. It is
not working in so many strange ways that I have no clue how to debug. I
am on code writing strike, until I am sane again. I just uploaded my
code to p.b.s-f. Hope it helps...
--
Dan Johnson
http://www.geocities.com/zapob
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Dan Johnson" <zap### [at] hotmailcom> wrote :>
> I was going to try, and do that, but the code is being stubborn.
Not a problem, I've been working on it off and on for about a year.
> I
> am on code writing strike, until I am sane again.
I know how that feels. I got sane again once in the middle 80's. A nice
rest but vastly over-rated.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |