37 if( theGeomType ==
"CLOSED_PLANAR" ){
39 thePoints.push_back( thePoints[0] );
40 for(
size_t ii = 1; ii < thePoints.size(); ii++ ){
41 theDirections.push_back( thePoints[ii] - thePoints[ii-1] );
43 theDirections.push_back( thePoints[0] - thePoints[thePoints.size()-1] );
50 if( thePoints.size() == 0 ) {
54 "No Point in contour");
58 return thePoints[0].z();
64 points.push_back( points[0] );
65 size_t npold = thePoints.size();
66 for(
size_t ii = 0; ii < points.size(); ii++ ) {
67 thePoints.push_back( points[ii] );
70 for(
size_t ii = npold+1; ii < thePoints.size(); ii++ ){
71 theDirections.push_back( thePoints[ii] - thePoints[ii-1] );
73 theDirections.push_back( thePoints[npold] - thePoints[thePoints.size()-1] );
81 out <<
this <<
"@@@ NUMBER OF ContourImageSequences " << theImageIUIDs.size() <<
G4endl;
82 for(
size_t ii = 0; ii < theImageIUIDs.size(); ii++ ) {
83 out <<
"ContourImageSequence I= " << theImageIUIDs[ii] <<
G4endl;
85 out <<
"@@@ GeomType " << theGeomType <<
" NPOINTS " << thePoints.size() <<
G4endl;
86 for(
size_t ii = 0; ii < thePoints.size(); ii++ ) {
87 out <<
"(" << thePoints[ii].x()<<
"," << thePoints[ii].y()<<
"," << thePoints[ii].z()
void Print(std::ostream &out)
void SetData(std::vector< G4ThreeVector > data)
const XML_Char const XML_Char * data
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void AddPoints(std::vector< G4ThreeVector > points)