Tagging faces through feature script

Hi there,
I'm currently working on a project with the following pipeline:

1) Create a 3-D Model using OnShape
2) Export this model as a Parasolid object
3) Convert the Parasolid to a tetrahedral mesh 
4) Run a series of simulations on the mesh, contingent on various boundary conditions

My current issue is that the boundary conditions are generated on the face level for my original 3-D Model through an OnShape FeatureScript then enforced on the vertex level for my tetrahedral mesh (i.e. given a table model, generate a boundary condition for the face corresponding to the tabletop, then enforce a boundary condition on all mesh vertices that comprise that tabletop face). Therefore I would like an effective way of mapping vertices of my mesh to faces of my original OnShape model. Currently, my implementation solves this issue by including the bounding-box of each face in the FeatureScript export (of boundary conditions), manually computing the bounding-box of each Parasolid face in my application, then comparing these boxes to find out which boundary conditions correspond to which vertices. This solution doesn't feel particularly efficient or robust. 

So the question I have is whether there is a way, through the OnShape API, to 'tag' certain faces with attributes or information that can then be accessed from a newly exported Parasolid object. Thanks a bunch and sorry for the lengthy contextual background!

Best Answer

Answers