Changeset 239 for cpp/frams/model
- Timestamp:
- 04/30/14 13:28:42 (11 years ago)
- Location:
- cpp/frams/model/geometry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/geometry/meshbuilder.cpp
r234 r239 18 18 } 19 19 20 doubleMeshBuilder::Iterator::setDensity(const double _density)20 void MeshBuilder::Iterator::setDensity(const double _density) 21 21 { 22 22 density = _density; 23 return density;24 23 } 25 24 … … 783 782 {} 784 783 785 boolMeshBuilder::BoundingBoxVolume::initialize(const Model &model)784 void MeshBuilder::BoundingBoxVolume::initialize(const Model &model) 786 785 { 787 786 Pt3D lowerBoundary, upperBoundary; 788 787 ModelGeometryInfo::boundingBox(model, lowerBoundary, upperBoundary); 789 788 initialize(lowerBoundary, upperBoundary); 790 return true; 791 } 792 793 bool MeshBuilder::BoundingBoxVolume::initialize(const Pt3D &lowerBoundary, const Pt3D &upperBoundary) 789 } 790 791 void MeshBuilder::BoundingBoxVolume::initialize(const Pt3D &lowerBoundary, const Pt3D &upperBoundary) 794 792 { 795 793 length = Pt3D(upperBoundary.x - lowerBoundary.x, 0.0, 0.0); … … 804 802 805 803 volume = Segment(density); 806 return true;807 804 } 808 805 -
cpp/frams/model/geometry/meshbuilder.h
r193 r239 27 27 Iterator(const double _density); 28 28 double getDensity() const; 29 doublesetDensity(const double _density);29 void setDensity(const double _density); 30 30 virtual bool tryGetNext(Pt3D &point) = 0; 31 31 void forEach(Callback &callback); … … 240 240 public: 241 241 BoundingBoxVolume(const double _density); 242 boolinitialize(const Model &model);243 boolinitialize(const Pt3D &lowerBoundary, const Pt3D &upperBoundary);242 void initialize(const Model &model); 243 void initialize(const Pt3D &lowerBoundary, const Pt3D &upperBoundary); 244 244 bool tryGetNext(Pt3D &point); 245 245 };
Note: See TracChangeset
for help on using the changeset viewer.