Import Geant4 3.2.0 source tree
This commit is contained in:
@@ -1,12 +1,28 @@
|
||||
// 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.
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. *
|
||||
// * *
|
||||
// * 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: G4VRML1SceneHandlerFunc.icc,v 1.6 2001/01/25 15:28:11 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
// $Id: G4VRML1SceneHandlerFunc.icc,v 1.7.2.1 2001/06/28 19:16:03 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
//
|
||||
// G4VRML1SceneHandlerFunc.icc
|
||||
// Satoshi Tanaka & Yasuhide Sawada
|
||||
@@ -223,18 +239,18 @@ void G4VRML1SCENE::AddPrimitive(const G4Polyline& polyline)
|
||||
fDest << "\t" << "Coordinate3 {" << "\n";
|
||||
fDest << "\t\t" << "point [" << "\n";
|
||||
G4int e, i;
|
||||
for (i = 0, e = polyline.entries(); e; i++, e--) {
|
||||
for (i = 0, e = polyline.size(); e; i++, e--) {
|
||||
fDest << "\t\t\t";
|
||||
fDest << polyline(i).x() << " ";
|
||||
fDest << polyline(i).y() << " ";
|
||||
fDest << polyline(i).z() << "," << "\n";
|
||||
fDest << polyline[i].x() << " ";
|
||||
fDest << polyline[i].y() << " ";
|
||||
fDest << polyline[i].z() << "," << "\n";
|
||||
}
|
||||
fDest << "\t\t" << "]" << "\n";
|
||||
fDest << "\t" << "}" << "\n"; // Coordinate3
|
||||
|
||||
fDest << "\t" << "IndexedLineSet {" << "\n";
|
||||
fDest << "\t\t" << "coordIndex [";
|
||||
for (i = 0, e = polyline.entries(); e; i++, e--) {
|
||||
for (i = 0, e = polyline.size(); e; i++, e--) {
|
||||
if (i % 10 == 0)
|
||||
fDest << "\n" << "\t\t\t";
|
||||
fDest << i << ", ";
|
||||
|
||||
Reference in New Issue
Block a user