OpenFOAM session & display geometry
I rebased TJ's OpenFOAM branch and can reproduce most of the original demo. One thing that still doesn't work is that model geometry (generated by OpenFOAM) doesn't display in the render view.
- I pushed my branch to gitlab and I think the relevant code is https://gitlab.kitware.com/john.tourtellott/smtk/-/blob/rebase/resurrect-openfoam-session/smtk/session/openfoam/operators/create_wind_tunnel.py#L236-L307
- In that snippet, a
blockMeshSurface.stl
file, which was generated by OpenFOAM, is imported into ansmtk::mesh::Resource
. - Then in lines 271-285 model entities -- one volume and 6 faces -- are added to an
smtk::session::openfoam::Resource
instance (variable nameresource
). - It looks like the current code classifies each meshset to a model face (line 284), but I suspect that we also (or instead) need to set the tessellation for each model face to its corresponding mesh set.
- Toward that end, I am currently looking at
ExtractTessellation
code in smtk::mesh.