Ignore:
Timestamp:
Jul 10, 2012, 1:18:31 PM (9 years ago)
Author:
sam
Message:

easymesh: add the capsule mesh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/easymesh/easymesh-parser.y

    r1510 r1619  
    5151%token T_CHAMFER
    5252
    53 %token T_CYLINDER T_BOX T_SMOOTHCHAMFBOX T_FLATCHAMFBOX T_SPHERE T_STAR
    54 %token T_EXPANDEDSTAR T_DISC T_TRIANGLE T_QUAD T_COG
     53%token T_CYLINDER T_BOX T_SMOOTHCHAMFBOX T_FLATCHAMFBOX T_SPHERE T_CAPSULE
     54%token T_STAR T_EXPANDEDSTAR T_DISC T_TRIANGLE T_QUAD T_COG
    5555
    5656%token T_END 0
     
    148148  | T_SPHERE args4         { mc.m_mesh.AppendSphere($2.f0,
    149149                                               vec3($2.f1, $2.f2, $2.f3)); }
     150  | T_CAPSULE args3        { mc.m_mesh.AppendCapsule($2.f0, $2.f1, $2.f2); }
    150151  | T_STAR args5           { mc.m_mesh.AppendStar((int)$2.f0, $2.f1, $2.f2,
    151152                                             (int)$2.f3, (int)$2.f4); }
Note: See TracChangeset for help on using the changeset viewer.