Changeset 977 for cpp/frams/model/modelparts.cpp
- Timestamp:
- 07/06/20 23:39:36 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/modelparts.cpp
r975 r977 107 107 preflocation(_preflocation), 108 108 supported_shape_types(sup_shapes), 109 supported_joint_shapes(sup_joints), 109 110 vectordata(_vectordata), 110 111 visualhints(vhints), impl_count(0),/*impl(0),*/active(1), genactive(0) … … 624 625 } 625 626 627 const char* Part::getShapeName(Shape sh) 628 { 629 switch (sh) 630 { 631 case SHAPE_BALL_AND_STICK: return "ball-and-stick"; 632 case SHAPE_ELLIPSOID: return "ellipsoid"; 633 case SHAPE_CUBOID: return "cuboid"; 634 case SHAPE_CYLINDER: return "cylinder"; 635 636 default: 637 return "unknown shape"; 638 } 639 } 626 640 627 641 /////////////////////////// … … 709 723 } 710 724 725 const char* Joint::getShapeName(Shape sh) 726 { 727 switch (sh) 728 { 729 case SHAPE_BALL_AND_STICK: return "ball-and-stick"; 730 case SHAPE_FIXED: return "fixed"; 731 case SHAPE_HINGE_X: return "hinge x"; 732 case SHAPE_HINGE_XY: return "hinge xy"; 733 734 default: 735 return "unknown shape"; 736 } 737 } 738 739 711 740 ///////////////////////////////////////////////////////////////// 712 741
Note: See TracChangeset
for help on using the changeset viewer.