faqts : Computers : Programming : Algorithms : Graphics

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

Computer: Graphics: Object: 3D: Operation: Create: Simple: How to quickly create 3D data?

Feb 4th, 2006 16:37
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 04 February 2006 - 11:00 pm -------------------

Computer: Graphics: Object: 3D: Operation: Create: Simple: How to 
quickly create 3D data?

---

Method: Translation of a 2D figure

One of the simplest methods to (manually) create 3D data is to 
translate
a 2D figure over a certain distance in the z direction.

 1. -Create your figure in 2D

 2. -Now translate this 2D figure a certain distance in the z-direction

     1. -E.g. from z equals zero, to z equals 1

         1. -This comes down to taking your 2D data

             1. -Adding z = 0 to each point

         2. -Taking again that 2D data

             2. -Adding z = 1 to each point

===

e.g.

     1. -Draw a triangle in 2D

            1. -In 2D

                      x (0,1)
                     / \
                    /   \
                   /     \
                  /       \
          (-1,0) x---------x (1,0)


     2. -To get a possible 3D representation,
         just add a zero ',0' for z

               x (0,1,0)
              / \
             /   \
            /     \
           /       \
 (-1,0,0) x---------x (1,0,0)


     3. -To get a possible 3D representation,
         just add a zero ',1' for z


               x (0,1,1)
              / \
             /   \
            /     \
           /       \
 (-1,0,1) x---------x (1,0,1)


     4. -By combining the 2 data sets you have a
         translated triangle over a distance
         from z=0 to z=1



                      (0,1,1)
                     /\
                    /  \
                   /    \
                  /      \
                 /        \
                /          / (1,0,1)
               x (0,1,0)  /
              / \        /
             /   \      /
            /     \    /
           /       \  /
  (-1,0,0) x---------x (1,0,0)


figure: the triangle has been translated over a distance
        in the z-direction


     5. -The data set representing the 2D figure is thus

          (0,1)
         (-1,0)
          (1,0)

     6. -The data set representing this 3D figure is thus

          (0,1,0)
         (-1,0,0)
          (1,0,0)

          (0,1,1)
         (-1,0,1)
          (1,0,1)

         You have thus basically just repeated your 2D data, and putted
         a 0 respectively a 1 behind it.

---
---

Internet: see also:

---

Computer: Graphics: Link: Overview: Can you give an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/39499/fid/818

----------------------------------------------------------------------