commit e172985cccd9e5dee20117a3ae498d87f2ffebd0
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Mon Apr 6 23:18:06 2020 +0100

    Progress implementing RubikCube.retObjectString()

diff --git a/src/main/java/org/distorted/library/mesh/MeshBase.java b/src/main/java/org/distorted/library/mesh/MeshBase.java
index c789910..fb9afc3 100644
--- a/src/main/java/org/distorted/library/mesh/MeshBase.java
+++ b/src/main/java/org/distorted/library/mesh/MeshBase.java
@@ -401,6 +401,8 @@ public abstract class MeshBase
  * Please note that calling this once with the complete list of Effects will be much faster than
  * calling it repeatedly with one Effect at a time, as we have to reallocate the array of vertices
  * each time.
+ *
+ * @param effects List of Matrix Effects to apply to the Mesh.
  */
    public void apply(MatrixEffect[] effects)
      {
@@ -475,6 +477,8 @@ public abstract class MeshBase
  * maps[3] = the map for the 4th component
  *
  * A map's width and height have to be non-zero (but can be negative!)
+ *
+ * @param maps List of texture maps to apply to the texture's components.
  */
    public void setTextureMap(Static4D[] maps)
      {
@@ -519,6 +523,17 @@ public abstract class MeshBase
      mVBO.invalidate();
      }
 
+///////////////////////////////////////////////////////////////////////////////////////////////////
+/**
+ * Return the texture map of one of the components.
+ *
+ * @param component The component number whose texture map we want to retrieve.
+ */
+   public Static4D getTextureMap(int component)
+     {
+     return (component>=0 && component<mComponent.size()) ? mComponent.get(component).mTextureMap : null;
+     }
+
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 /**
  * Each mesh has its 'bounding box' - return half of its X-length.
