Ignore:
Timestamp:
Nov 3, 2009, 11:17:28 AM (15 years ago)
Author:
garnier
Message:

update to CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/graphics_reps/src/HepPolyhedron.cc

    r1058 r1140  
    2525//
    2626//
    27 // $Id: HepPolyhedron.cc,v 1.32 2008/11/13 09:05:27 gcosmo Exp $
    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: $
    2929//
    3030//
     
    22552255
    22562256#include "BooleanProcessor.src"
    2257 static BooleanProcessor processor;
    22582257
    22592258HepPolyhedron HepPolyhedron::add(const HepPolyhedron & p) const
     
    22672266 ***********************************************************************/
    22682267{
    2269   return processor.execute(OP_UNION, *this, p);
     2268  int ierr;
     2269  BooleanProcessor processor;
     2270  return processor.execute(OP_UNION, *this, p,ierr);
    22702271}
    22712272
     
    22802281 ***********************************************************************/
    22812282{
    2282   return processor.execute(OP_INTERSECTION, *this, p);
     2283  int ierr;
     2284  BooleanProcessor processor;
     2285  return processor.execute(OP_INTERSECTION, *this, p,ierr);
    22832286}
    22842287
     
    22932296 ***********************************************************************/
    22942297{
    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.