Fixed bug with RawVolume always starting coordinates at (0,0,0).
Removed Filters.h/.inl Added Summed Area Table support to LowPassFilter. Added test for low pass filter.
This commit is contained in:
		| @@ -21,10 +21,11 @@ freely, subject to the following restrictions: | ||||
|     distribution. 	 | ||||
| *******************************************************************************/ | ||||
|  | ||||
| #include "PolyVoxCore/Filters.h" | ||||
| #include "PolyVoxCore/Log.h" | ||||
| #include "PolyVoxCore/MaterialDensityPair.h" | ||||
| #include "PolyVoxCore/LargeVolume.h" | ||||
| #include "PolyVoxCore/LowPassFilter.h" | ||||
| #include "PolyVoxCore/RawVolume.h" | ||||
| #include "PolyVoxCore/SurfaceMesh.h" | ||||
| #include "PolyVoxImpl/Utility.h" | ||||
|  | ||||
| @@ -101,8 +102,11 @@ int main(int argc, char *argv[]) | ||||
| 	createCubeInVolume(volData, Vector3DInt32(midPos-10, midPos-10 ,1), Vector3DInt32(midPos+10, midPos+10, maxPos-1), MaterialDensityPair44::getMaxDensity()); | ||||
|  | ||||
| 	//Smooth part of the volume | ||||
| 	smoothRegion<LargeVolume, MaterialDensityPair44>(volData, PolyVox::Region(Vector3DInt32(62, 62, 62), Vector3DInt32(127, 127, 127))); | ||||
| 	smoothRegion<LargeVolume, MaterialDensityPair44>(volData, PolyVox::Region(Vector3DInt32(62, 62, 62), Vector3DInt32(127, 127, 127))); | ||||
| 	RawVolume<MaterialDensityPair44> tempVolume(Region(0,0,0,128, 128, 128)); | ||||
| 	LowPassFilter<LargeVolume, RawVolume, MaterialDensityPair44> pass1(&volData, PolyVox::Region(Vector3DInt32(62, 62, 62), Vector3DInt32(126, 126, 126)), &tempVolume, PolyVox::Region(Vector3DInt32(62, 62, 62), Vector3DInt32(126, 126, 126)), 3); | ||||
| 	pass1.executeSAT(); | ||||
| 	LowPassFilter<RawVolume, LargeVolume, MaterialDensityPair44> pass2(&tempVolume, PolyVox::Region(Vector3DInt32(62, 62, 62), Vector3DInt32(126, 126, 126)), &volData, PolyVox::Region(Vector3DInt32(62, 62, 62), Vector3DInt32(126, 126, 126)), 3); | ||||
| 	pass2.executeSAT(); | ||||
|  | ||||
| 	QApplication app(argc, argv); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user