Completely rewritten the slicing algorithm

It should work with any model now. There are still problems with some
bridges.
This commit is contained in:
Alessandro Ranellucci 2011-10-09 19:47:21 +02:00
parent ad27f25c71
commit 459577f9a2
8 changed files with 137 additions and 246 deletions

View file

@ -4,13 +4,13 @@ use Moo;
has 'x' => (
is => 'ro',
required => 1,
coerce => sub { sprintf '%.0f', $_[0] },
#coerce => sub { sprintf '%.0f', $_[0] },
);
has 'y' => (
is => 'ro',
required => 1,
coerce => sub { sprintf '%.0f', $_[0] },
#coerce => sub { sprintf '%.0f', $_[0] },
);
sub cast {