schf |
September 15, 2017 07:27 |
Create cellSet in specified distance to all patches
Hello everyone,
I need to do calculation during runtime only on the cells which are ~1cm away from a patch.
So the goal is to create a cellSet/cellZone and then to loop over these cells. The best I found so far to create such a cellSet is this function in topoSet:
Code:
// Select based on surface
surfaceToCell {
file "name.stl";
outsidePoints ((-99 -99 -59)); // definition of outside
includeCut false; // cells cut by surface
includeInside false; // cells not on outside of surf
includeOutside false; // cells on outside of surf
nearDistance -1; // cells with centre near surf // (set to -1 if not used)
curvature 0.9; // cells within nearDistance // and near surf curvature // (set to -100 if not used)
}
But I need it more general so I don't have to specify each patch by itself.
Does anybody got an idea how to do this?
|