34 void Foam::PolyhedronReader::Build_triangle<HDS>::operator()(HDS& hds)
37 CGAL::Polyhedron_incremental_builder_3<HDS>
B(hds,
true);
39 B.begin_surface(s_.nPoints(), s_.size());
44 for (
const auto& pt : s_.points())
46 B.add_vertex(
Point(pt.x(), pt.y(), pt.z()));
49 for (
const auto&
f : s_)
53 for (
const label verti :
f)
55 B.add_vertex_to_facet(verti);
69 Build_triangle<HalfedgeDS> triangle(
s);
73 Foam::label nTris = 0;
83 fi->region =
s[nTris].region();
graph_traits< Graph >::vertex_descriptor Vertex
PolyhedronReader(const triSurface &s, Polyhedron &p)
Populate polyhedron from surface.
Polyhedron::Facet_iterator Facet_iterator
CGAL::Polyhedron_3< K, My_items > Polyhedron
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)