Changeset 972 for cpp/frams/_demos/shapeconvert.cpp
- Timestamp:
- 07/03/20 00:32:23 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/shapeconvert.cpp
r546 r972 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-20 16Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2020 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 46 46 if (ar[0] == '-') 47 47 switch (ar[1]) 48 {48 { 49 49 case 's': shape = (Part::Shape)atol(ar + 2); 50 50 if ((shape != Part::SHAPE_ELLIPSOID) && (shape != Part::SHAPE_CUBOID) && (shape != Part::SHAPE_CYLINDER)) … … 56 56 case 't': thickness = atof(ar + 2); break; 57 57 case 'h': puts("Usage: shapeconvert [-sSHAPE] [-tTHICKNESS] [genotype_or_stdin]\n\tSHAPE: 1=ellipsoid, 2=cuboid, 3(default)=cylinder\n\tTHICKNESS: used for Part.sy/sz (default=0.2)"); break; 58 }58 } 59 59 else 60 60 if (!gen_arg) … … 67 67 loadSString(VirtFILE::Vstdin, gen); 68 68 Geno g(gen); 69 Model m(g );69 Model m(g, Model::SHAPE_UNKNOWN); 70 70 71 71 if (!m.isValid())
Note: See TracChangeset
for help on using the changeset viewer.