diff --git a/Comparison/src/main/java/cz/fidentis/analyst/face/HumanFace.java b/Comparison/src/main/java/cz/fidentis/analyst/face/HumanFace.java index b5a1fb090f5147ff7f273c51fc217ec8e1af3db5..3782e7dda2093cd855e0878b0635ccf574426bf5 100644 --- a/Comparison/src/main/java/cz/fidentis/analyst/face/HumanFace.java +++ b/Comparison/src/main/java/cz/fidentis/analyst/face/HumanFace.java @@ -170,7 +170,7 @@ public class HumanFace implements MeshListener, Serializable { } /** - * Return unique ID of the face. + * Returns unique ID of the face. * * @return unique ID of the face. */ @@ -178,6 +178,16 @@ public class HumanFace implements MeshListener, Serializable { return this.id; } + /** + * Returns short name of the face distilled from the file name. May not be unique. + * @return short name of the face distilled from the file name + */ + public String getName() { + String name = id.substring(0, id.lastIndexOf('.')); // remove extention + name = name.substring(id.lastIndexOf('/')+1, name.length()); + return name; + } + /** * Returns already computed k-d tree of the triangular mesh or {@code null}. * @return Already computed k-d tree of the triangular mesh or {@code null}