Ignore:
Timestamp:
08/12/24 03:48:20 (4 months ago)
Author:
Maciej Komosinski
Message:

Field rename for less ambiguity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/shapeconvert.cpp

    r1118 r1323  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2021  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2024  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    1515 @file
    1616 Sample code: Convert old-style shapes (sticks are Joints) to new style (sticks are Parts)
    17  Usage: shapeconvert [-sSHAPE] [-tTHICKNESS] [genotype_or_stdin]
     17 Usage: shapeconvert [-sSHAPE] [-rRADIUS] [genotype_or_stdin]
    1818
    1919 Calling examples:
     
    3838        PreconfiguredGenetics genetics;
    3939        Part::Shape shape = Part::SHAPE_CYLINDER;
    40         float thickness = Part::DEFAULT_STICK_RADIUS;
     40        float radius = Part::BALL_AND_STICK_RADIUS;
    4141
    4242        char* gen_arg = 0;
     
    5454                                }
    5555                                break;
    56                         case 't': thickness = atof(ar + 2); break;
    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;
     56                        case 'r': radius = atof(ar + 2); break;
     57                        case 'h': puts("Usage: shapeconvert [-sSHAPE] [-rRADIUS] [genotype_or_stdin]\n\tSHAPE: 1=ellipsoid, 2=cuboid, 3(default)=cylinder\n\tRADIUS: used for Part.sy/sz (default=0.2)"); break;
    5858                        }
    5959                else
     
    8383        Model newmodel;
    8484        newmodel.open();
    85         newmodel.buildUsingSolidShapeTypes(m, shape, thickness);
     85        newmodel.buildUsingSolidShapeTypes(m, shape, radius);
    8686        newmodel.close();
    8787
Note: See TracChangeset for help on using the changeset viewer.