ElementHighlighter
- class cee.usg.ElementHighlighter()
 Helper class for highlighting elements
The class makes it easy to highlight an element by adding a tessellation of the element to a markup model, as well as creating a label with the element id/index.
Constructors
Methods
Constructors
constructor
- cee.usg.ElementHighlighter.constructor(usgModel, markupModel)
 Setup the object with the unstruct grid model with the FEA model, and the Markup Model which will receive the highlight parts constructed from the usgModel.
- Arguments
 usgModel (
cee.usg.UnstructGridModel) –markupModel (
cee.mrk.MarkupModel) –
- Return type
 cee.usg.ElementHighlighter
Methods
addElementHighlight
- cee.usg.ElementHighlighter.addElementHighlight(surfaceColor, state, partIndex, elementIndex)
 Add a part with the tessellation of the given element as a surface with the given color. The part will use eye lift to not interfere with the usg model.
- Arguments
 surfaceColor (
cee.Color3) –state (
cee.usg.State) –partIndex (
number) –elementIndex (
number) –
- Return type
 boolean
See example image above for how it will look
- cee.usg.ElementHighlighter.addElementHighlight(surfaceColor, hitItem)
 - Arguments
 surfaceColor (
cee.Color3) –hitItem (
cee.usg.HitItem) –
- Return type
 boolean
addElementLabel
- cee.usg.ElementHighlighter.addElementLabel(state, partIndex, elementIndex, label)
 Add an element label based on either a hit item or specified by state, part and element index.
- Arguments
 state (
cee.usg.State) –partIndex (
number) –elementIndex (
number) –label (
string) –
- Return type
 boolean
See example image above for how it will look
- cee.usg.ElementHighlighter.addElementLabel(hitItem)
 - Arguments
 hitItem (
cee.usg.HitItem) –
- Return type
 boolean