[Bf-blender-cvs] [9a78eea] fluid-mantaflow: final cleanup for liquid inflow
Sebastián Barschkis
noreply at git.blender.org
Thu Jun 30 00:39:29 CEST 2016
Commit: 9a78eea0811c81cd213f1ca91bee78d223761a9e
Author: Sebastián Barschkis
Date: Wed Jun 29 01:23:20 2016 +0200
Branches: fluid-mantaflow
https://developer.blender.org/rB9a78eea0811c81cd213f1ca91bee78d223761a9e
final cleanup for liquid inflow
===================================================================
M source/blender/blenkernel/intern/smoke.c
===================================================================
diff --git a/source/blender/blenkernel/intern/smoke.c b/source/blender/blenkernel/intern/smoke.c
index 0280d0c..bc25542 100644
--- a/source/blender/blenkernel/intern/smoke.c
+++ b/source/blender/blenkernel/intern/smoke.c
@@ -1550,28 +1550,6 @@ static void sample_derivedmesh(
}
}
-// /*****************************************************/
-//
-// /* Calculate map which indicates whether point is inside a mesh or not */
-// if (BLI_bvhtree_ray_cast(treeData->tree, ray_start, ray_dir, 0.0f, &hit, treeData->raycast_callback, treeData) != -1) {
-// float dot = ray_dir[0] * hit.no[0] + ray_dir[1] * hit.no[1] + ray_dir[2] * hit.no[2];
-// /* If ray and hit face normal are facing same direction
-// * hit point is inside a closed mesh. */
-// if (dot >= 0) {
-// /* Also cast a ray in opposite direction to make sure
-// * point is at least surrounded by two faces */
-// negate_v3(ray_dir);
-// hit.index = -1;
-// hit.dist = 9999;
-//
-// BLI_bvhtree_ray_cast(treeData->tree, ray_start, ray_dir, 0.0f, &hit, treeData->raycast_callback, treeData);
-//
-// if (hit.index != -1) {
-// inflow_map[index] = -0.5; // Inside mesh
-// }
-// }
-// }
-
/*****************************************************
* Liquid inflow based on raycasts in all 6 directions.
* Uses distances to mesh surface from within and outside flow mesh for inflow map.
More information about the Bf-blender-cvs
mailing list