Ignore:
Timestamp:
Jul 8, 2012, 8:26:36 PM (7 years ago)
Author:
touky
Message:

EasyMesh : Fixed normals on disc when one of the radius == 0
EasyPhysics : Added Cone primitive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/easymesh/easymesh.cpp

    r1512 r1599  
    305305
    306306    /* Construct normal */
    307     n = p2;
     307        if (r2 != .0f)
     308                n = vec3(r2, h * .5f, 0.f);
     309        else
     310                n = vec3(r1, h * .5f, 0.f);
    308311    n.y = r1 * (r1 - r2) / h;
    309312    if (!smooth)
Note: See TracChangeset for help on using the changeset viewer.