[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 46 KB, 400x518, WrongProgramming.jpg [View same] [iqdb] [saucenao] [google]
3923956 No.3923956 [Reply] [Original]

I need help with a programming task.

Programming a 3D-model of a teapot by making and filling triangles. Where do I start?

>> No.3923958

With the teapot

>> No.3923960

With a doughnut

>> No.3923971

>>3923960
That's what >>3923958 said...

>> No.3923972

Teapot is genus 2, can't get it from a doughnut via a homeomorphism.

>> No.3923973

Try to place points uniformly but not in some pattern across the surface of a teapot, then hand-code the coordinates into a computer.

Run an algorithm to give you the Delaunay triangulation.

Use OpenGL to generate all the triangles, and shade and light them to taste.

Done!

>> No.3923976

>>3923972
+1 for topology

>> No.3923977

>>3923972
Depends on the teapot. If it has a non-loop handle, it's genus 1.

>> No.3923993

>>3923977
True.

>> No.3924050

>>3923993
AND WHAT IF IT HAS A NON-ORIENTABLE HANDLE? :O

>> No.3924065

Let me guess You're doing it in Java and it is for a university assignment?

>> No.3924116
File: 24 KB, 800x600, spaceship triangle teapot.jpg [View same] [iqdb] [saucenao] [google]
3924116

i'd be surprised if there is a procedural way to make the classic teapot.