7 treeBoundBox(coarseMesh.points()).extend(
rndGen, 1
e-3)
16 distributedTriSurfaceMesh::distributionTypeNames_
18 distributedTriSurfaceMesh::FROZEN
21dict.add(
"mergeDistance", SMALL);
60 const auto& surf =
static_cast<const triSurface&
>(
surfacesMesh);
64 const pointField&
pts = surf.points();
66 for (
const auto&
f : surf)
68 const point& a =
pts[
f.a()];
69 const point&
b =
pts[
f.b()];
70 const point& c =
pts[
f.c()];
74 Point(a.x(), a.y(), a.z()),
76 Point(c.x(), c.y(), c.z())
81 std::cout <<
triangles.back() << std::endl;
const polyBoundaryMesh & patches
labelList triSurfaceToAgglom(5 *nFineFaces)
const triSurface localSurface
List< treeBoundBox > meshBb(1, treeBoundBox(coarseMesh.points()).extend(rndGen, 1e-3))
distributedTriSurfaceMesh surfacesMesh(IOobject("wallSurface.stl", runTime.constant(), "triSurface", runTime, IOobject::NO_READ, IOobject::NO_WRITE), localSurface, dict)
labelList triSurfaceToAgglom(5 *nFineFaces)
List< treeBoundBox > meshBb(1, treeBoundBox(coarseMesh.points()).extend(rndGen, 1e-3))
std::vector< Triangle > triangles
distributedTriSurfaceMesh surfacesMesh(IOobject("wallSurface.stl", runTime.constant(), "triSurface", runTime, IOobject::NO_READ, IOobject::NO_WRITE), localSurface, dict)
Tree tree(triangles.begin(), triangles.end())