-
Notifications
You must be signed in to change notification settings - Fork 2
Mesh Renderer
jsutlive edited this page May 17, 2023
·
1 revision
Extends: Object Renderer
Implements: IRender, IColor (from Object Renderer)
Mesh Renderer is responsible for rendering objects composed of complex polygon structures. It inherits the fields "color" and "defaultColor" from the Object Renderer class. Some methods are inherited via interface IRender and the Component base class.
Accessibility | Type | Field Name | Description |
---|---|---|---|
private | Mesh | cellMesh | reference to the mesh of this object |
private, final | Color | highlightColor | Color used to highlight selected objects |
public | boolean | showEdgeNormals | display normals of individual edges of the polygon |
Accessibility | Return Type | Method Name | Description |
---|---|---|---|
public | void | setDefaultColor | sets the value for defaultColor |
public | void | setTargetLengthRatio | sets the value for targetLengthRatio |
public | void | highlightColor | If this object is included in a list of entities, call alter colors, else call resetToDefaultColor |
private | void | alterColors | change object color to highlightedColor |
public | void | resetToDefaultColor | changes object color to defaultColor |