From f33d7bea0074fb62bc437a2b4ea0c86e15874a42 Mon Sep 17 00:00:00 2001 From: epoch Date: Mon, 27 Jan 2020 17:56:16 -0600 Subject: added a comment that explains what some regex does --- bin/obj2hackvr.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/obj2hackvr.pl b/bin/obj2hackvr.pl index 3639750..7a60cd0 100755 --- a/bin/obj2hackvr.pl +++ b/bin/obj2hackvr.pl @@ -49,6 +49,7 @@ while() { #convert to triangles foreach $tmp (@faces) { @points=split(/ /,$tmp); +## this map is to split off the vertex texture and vertex normal parts of the face. @points = map { $_ =~ s/\/.+$//g; $_; } @points; # print @points; for($i=2;$i<(@points);$i++) { -- cgit v1.2.3