Archived

This topic is now archived and is closed to further replies.

Unit sphere...

This topic is 5426 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I'm trying to create a unit sphere by recursively subdividing the faces of the four triangles of a tetrahedron centered at the origin, giving four new triangles for each face. What then? I need to get those points on the unit sphere. Do I normalize or something? I have a feeling that it's so simple and right under my nose...please show it to me EDIT: forgot a sentence!!
Human beings, by changing the inner attitudes of their minds, can change the outer aspects of their lives.
William James (1842 - 1910) [edited by - rohde on December 14, 2003 12:11:51 PM]

Share on other sites
"and right under my nose...please show it to me"

/me holds up a mirror and says, "There''s your nose"

-=[ Megahertz ]=-

Share on other sites
Basically, you''d just subdivide and push it outwards along the faces normal. Only problem is calculating how far to push the point out, normally this is calculated based on the difference in normals between the 3 corners (the sharper the angle, the further out it is pushed). I am not sure the exact algorythm off hand and would have to play with it a bit to figure out a good way .

Share on other sites
quote:
Basically, you''d just subdivide and push it outwards along the faces normal. Only problem is calculating how far to push the point out, normally this is calculated based on the difference in normals between the 3 corners (the sharper the angle, the further out it is pushed). I am not sure the exact algorythm off hand and would have to play with it a bit to figure out a good way .

That''s what I meant with "right under my nose": face normal!! Doh...thanks

Human beings, by changing the inner attitudes of their minds, can change the outer aspects of their lives.

William James (1842 - 1910)

Share on other sites
uhmm, no?

simply normalize the vertex position vectors. thats all there is to it.

Share on other sites
with a tetrahedron, you''re gonna end up with some pretty substantial "corners" in your mesh. if you subdivide and normalize each point, you''ll end up with smaller triangles near the original corners of your tetrahedron and larger ones towards the centers. you can alleviate this somewhat by starting with a dodecahedron or even an icosohedron, but it''ll still be an issue...

1. 1
Rutin
45
2. 2
3. 3
4. 4
5. 5
JoeJ
19

• 11
• 13
• 10
• 12
• 10
• Forum Statistics

• Total Topics
633002
• Total Posts
3009822
• Who's Online (See full list)

There are no registered users currently online

×