52 std::vector<G4Material*>&
mat,
57 fdX(voxelSize.
x()), fdY(voxelSize.
y()), fdZ(voxelSize.
z()),
58 fnX(fnX_), fnY(fnY_), fnZ(fnZ_),
78 std::ifstream
fin(colourFile.c_str());
81 G4double cred, cgreen, cblue, copacity;
83 for(
G4int ii = 0; ii < nMate; ii++ )
88 fin >> cred >> cgreen >> cblue >> copacity;
89 G4Colour colour( cred, cgreen, cblue, copacity );
99 SetNoVoxel(
unsigned int nx,
unsigned int ny,
unsigned int nz )
114 if(parentTouch ==
nullptr)
132 std::string::size_type iuu = mateName.find(
"__");
133 if( iuu != std::string::npos )
134 mateName = mateName.substr( 0, iuu );
145 auto len = mat_color.length();
146 if(mateName.find(mat_color) == 0 &&
147 mateName.length() >
len && mateName[
len] ==
'_')
150 fColours.find(mat_color)->second);
159 static uintmax_t
n = 0;
161 G4cout <<
"Unknown material name " << mateName
162 <<
" for index " << matIndex <<
G4endl;
168 fColours.begin()->second);