Removing more calls to getVoxelAt()...
This commit is contained in:
		| @@ -55,15 +55,8 @@ void createSphereInVolume(SimpleVolume<uint8_t>& volData, float fRadius) | ||||
| 				if(fDistToCenter <= fRadius) | ||||
| 				{ | ||||
| 					//Our new density value | ||||
| 					//uint8_t uDensity = Density8::getmaxDensity()(); | ||||
| 					uint8_t uDensity = std::numeric_limits<uint8_t>::max(); | ||||
|  | ||||
| 					//Get the old voxel | ||||
| 					//uint8_t voxel = volData.getVoxelAt(x,y,z); | ||||
|  | ||||
| 					//Modify the density | ||||
| 					//voxel.setDensity(uDensity); | ||||
|  | ||||
| 					//Wrte the voxel value into the volume	 | ||||
| 					volData.setVoxelAt(x, y, z, uDensity); | ||||
| 				} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user