Changeset 1140 for trunk/source/graphics_reps/src/HepPolyhedron.cc
- Timestamp:
- Nov 3, 2009, 11:17:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/graphics_reps/src/HepPolyhedron.cc
r1058 r1140 25 25 // 26 26 // 27 // $Id: HepPolyhedron.cc,v 1.3 2 2008/11/13 09:05:27 gcosmoExp $28 // GEANT4 tag $Name: geant4-09-02-ref-02$27 // $Id: HepPolyhedron.cc,v 1.34 2009/10/28 13:36:32 allison Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // … … 2255 2255 2256 2256 #include "BooleanProcessor.src" 2257 static BooleanProcessor processor;2258 2257 2259 2258 HepPolyhedron HepPolyhedron::add(const HepPolyhedron & p) const … … 2267 2266 ***********************************************************************/ 2268 2267 { 2269 return processor.execute(OP_UNION, *this, p); 2268 int ierr; 2269 BooleanProcessor processor; 2270 return processor.execute(OP_UNION, *this, p,ierr); 2270 2271 } 2271 2272 … … 2280 2281 ***********************************************************************/ 2281 2282 { 2282 return processor.execute(OP_INTERSECTION, *this, p); 2283 int ierr; 2284 BooleanProcessor processor; 2285 return processor.execute(OP_INTERSECTION, *this, p,ierr); 2283 2286 } 2284 2287 … … 2293 2296 ***********************************************************************/ 2294 2297 { 2295 return processor.execute(OP_SUBTRACTION, *this, p); 2296 } 2297 2298 bool HepPolyhedron::IsErrorBooleanProcess() const { 2299 return processor.get_processor_error(); 2300 } 2298 int ierr; 2299 BooleanProcessor processor; 2300 return processor.execute(OP_SUBTRACTION, *this, p,ierr); 2301 } 2302 2303 //NOTE : include the code of HepPolyhedronProcessor here 2304 // since there is no BooleanProcessor.h 2305 2306 #undef INTERSECTION 2307 2308 #include "HepPolyhedronProcessor.src" 2309
Note: See TracChangeset
for help on using the changeset viewer.