Changeset 239 for cpp


Ignore:
Timestamp:
04/30/14 13:28:42 (11 years ago)
Author:
rgolebiewski
Message:

Changed type of value returned by some functions (two initializers and one setter) to void.

Location:
cpp/frams/model/geometry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/geometry/meshbuilder.cpp

    r234 r239  
    1818}
    1919
    20 double MeshBuilder::Iterator::setDensity(const double _density)
     20void MeshBuilder::Iterator::setDensity(const double _density)
    2121{
    2222        density = _density;
    23         return density;
    2423}
    2524
     
    783782{}
    784783
    785 bool MeshBuilder::BoundingBoxVolume::initialize(const Model &model)
     784void MeshBuilder::BoundingBoxVolume::initialize(const Model &model)
    786785{
    787786        Pt3D lowerBoundary, upperBoundary;
    788787        ModelGeometryInfo::boundingBox(model, lowerBoundary, upperBoundary);
    789788        initialize(lowerBoundary, upperBoundary);
    790         return true;
    791 }
    792 
    793 bool MeshBuilder::BoundingBoxVolume::initialize(const Pt3D &lowerBoundary, const Pt3D &upperBoundary)
     789}
     790
     791void MeshBuilder::BoundingBoxVolume::initialize(const Pt3D &lowerBoundary, const Pt3D &upperBoundary)
    794792{
    795793        length = Pt3D(upperBoundary.x - lowerBoundary.x, 0.0, 0.0);
     
    804802       
    805803        volume = Segment(density);
    806         return true;
    807804}
    808805
  • cpp/frams/model/geometry/meshbuilder.h

    r193 r239  
    2727                        Iterator(const double _density);
    2828                        double getDensity() const;
    29                         double setDensity(const double _density);
     29                        void setDensity(const double _density);
    3030                        virtual bool tryGetNext(Pt3D &point) = 0;
    3131                        void forEach(Callback &callback);
     
    240240                public:
    241241                        BoundingBoxVolume(const double _density);
    242                         bool initialize(const Model &model);
    243                         bool initialize(const Pt3D &lowerBoundary, const Pt3D &upperBoundary);
     242                        void initialize(const Model &model);
     243                        void initialize(const Pt3D &lowerBoundary, const Pt3D &upperBoundary);
    244244                        bool tryGetNext(Pt3D &point);
    245245        };
Note: See TracChangeset for help on using the changeset viewer.