Skip to content

Mesh Renderer

jsutlive edited this page May 17, 2023 · 1 revision

class Mesh Renderer

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.

Fields:

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

Methods

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
Clone this wiki locally