Import Geant4 2.0.0 source tree
This commit is contained in:
@@ -1,10 +1,34 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4EdgeLoopCreator.cc,v 1.3 2000/02/25 16:36:18 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// Class G4EdgeLoopCreator
|
||||
//
|
||||
// Authors: J.Sulkimo, P.Urban.
|
||||
// Revisions by: L.Broglia, G.Cosmo.
|
||||
//
|
||||
// History:
|
||||
// 18-Nov-1999: First step of re-engineering - G.Cosmo
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#include "G4EdgeLoopCreator.hh"
|
||||
#include "G4GeometryTable.hh"
|
||||
|
||||
G4EdgeLoopCreator G4EdgeLoopCreator::csc;
|
||||
|
||||
G4EdgeLoopCreator::G4EdgeLoopCreator(){G4GeometryTable::RegisterObject(this);}
|
||||
G4EdgeLoopCreator::G4EdgeLoopCreator()
|
||||
{
|
||||
G4GeometryTable::RegisterObject(this);
|
||||
}
|
||||
|
||||
G4EdgeLoopCreator::~G4EdgeLoopCreator(){}
|
||||
G4EdgeLoopCreator::~G4EdgeLoopCreator() {}
|
||||
|
||||
void G4EdgeLoopCreator::CreateG4Geometry(STEPentity& Ent)
|
||||
{
|
||||
@@ -16,20 +40,25 @@ void G4EdgeLoopCreator::CreateG4Geometry(STEPentity& Ent)
|
||||
STEPentity* TmpEnt=0;
|
||||
|
||||
G4int EdgeCount = Aggr->EntryCount();
|
||||
G4CurveVector* CurveVec = new G4CurveVector[EdgeCount];
|
||||
G4CurveVector* CurveVec = new G4CurveVector;
|
||||
|
||||
for(G4int a=0; a<EdgeCount;a++)
|
||||
{
|
||||
TmpEnt = ((EntityNode*)Node)->node;
|
||||
void *tmp =G4GeometryTable::CreateObject(*TmpEnt);
|
||||
CurveVec->append((G4Curve*)tmp);
|
||||
if (tmp) CurveVec->append((G4Curve*)tmp);
|
||||
Node = Node->NextNode();
|
||||
}
|
||||
|
||||
G4int EdgeNum = CurveVec->entries();
|
||||
if (EdgeNum != EdgeCount)
|
||||
G4cerr << "WARNING - G4EdgeLoopCreator::CreateG4Geometry" << G4endl
|
||||
<< "\tTotal of " << EdgeNum << " G4Curve components created, out of "
|
||||
<< EdgeCount << " expected !" << G4endl;
|
||||
|
||||
createdObject = CurveVec;
|
||||
}
|
||||
|
||||
void G4EdgeLoopCreator::CreateSTEPGeometry(void* G4obj)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user