Ignore:
Timestamp:
Apr 21, 2012, 8:23:52 PM (9 years ago)
Author:
sam
Message:

orbital: the mesh builder now supports spheres.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/orbital.cpp

    r1260 r1262  
    2929{
    3030    m.SetCurColor(vec4(1.0, 1.0, 0.0, 1.0));
    31     m.AppendBox(vec3(1.0, 1.0, 1.0));
    32     m.Duplicate();
    33     m.RotateX(45);
    34     m.Translate(vec3(0.5, 0.0, 0.0));
     31    m.AppendSphere(vec3(1.0, 0.5, 1.0), 32);
     32    m.Translate(vec3(0.0, -0.4, 0.0));
     33    m.Flush();
     34
     35    m.SetCurColor(vec4(1.0, 0.0, 1.0, 1.0));
     36    m.AppendBox(vec3(0.5, 0.5, 0.5));
     37    m.RotateX(45.0);
     38    m.RotateZ(45.0);
     39    m.Translate(vec3(0.0, 0.4, 0.0));
    3540    m.Flush();
    3641
Note: See TracChangeset for help on using the changeset viewer.