Ignore:
Timestamp:
12/16/14 01:51:06 (9 years ago)
Author:
Maciej Komosinski
Message:
  • Model validation checks part/joint shapes for consistency (old/new)
  • Model::getShape() returns new/old style
  • Model shape conversion (old to new) and sample usage in shapeconvert.cpp
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/model.h

    r258 r269  
    117117
    118118int checklevel;
     119
     120  public:
     121enum Shape {SHAPE_UNKNOWN,SHAPE_ILLEGAL,SHAPE_OLD,SHAPE_NEW};
     122  protected:
     123Shape shape;
    119124
    120125void updateNeuroRefno(); // set Neuro::refno for all neurons
     
    150155int isValid() const {return buildstatus==valid;}
    151156int getErrorPosition(bool includingwarnings=false);
     157Shape getShape() {return shape;}
    152158
    153159void updateRefno(); // set ::refno for all elements
     
    387393
    388394void disturb(double amount);
     395
     396void buildUsingNewShapes(const Model& src_old_shapes, Part::Shape default_shape = Part::SHAPE_CYLINDER, float thickness = 0.2);
    389397
    390398#ifdef EASYMAPDEBUG
Note: See TracChangeset for help on using the changeset viewer.