Skip to content

Commit

Permalink
Use infinity rather than hard coded values
Browse files Browse the repository at this point in the history
  • Loading branch information
picosonic committed Oct 11, 2021
1 parent cee2a49 commit d4898f4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions obj2js.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
// Next gather some stats on first pass
$num_verts=0;
$num_faces=0;
$min_x=9999999;
$max_x=-9999999;
$min_y=9999999;
$max_y=-9999999;
$min_z=9999999;
$max_z=-9999999;
$min_face=9999999;
$max_face=-9999999;
$min_x=INF;
$max_x=-INF;
$min_y=INF;
$max_y=-INF;
$min_z=INF;
$max_z=-INF;
$min_face=INF;
$max_face=-INF;

$cur_tex=7; // White
$vertices=array();
Expand Down

0 comments on commit d4898f4

Please sign in to comment.