Changeset 384 for library/bdm/base/bdmbase.cpp
- Timestamp:
- 06/19/09 10:17:25 (15 years ago)
- Location:
- library/bdm
- Files:
-
- 1 added
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.cpp
r377 r384 1 1 2 #include " libBM.h"2 #include "bdmbase.h" 3 3 4 4 //! Space of basic BDM structures … … 255 255 RV rv; //empty rv 256 256 bool rvaddok; 257 for ( int i = 0;i < n;i++ ) {257 for ( int i = 0;i < mpdfs.length();i++ ) { 258 258 rvaddok=rv.add ( mpdfs ( i )->_rv() ); //add rv to common rvs. 259 259 // If rvaddok==false, mpdfs overlap => assert error. … … 264 264 265 265 void compositepdf::setrvc ( const RV &rv, RV &rvc ) { 266 for ( int i = 0;i < n;i++ ) {266 for ( int i = 0;i < mpdfs.length();i++ ) { 267 267 RV rvx = mpdfs ( i )->_rvc().subt ( rv ); 268 268 rvc.add ( rvx ); //add rv to common rvc