We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2927b96 commit 4b03644Copy full SHA for 4b03644
1 file changed
lib/PDL/Graphics/TriD/Objects.pm
@@ -263,6 +263,7 @@ sub new {
263
my %less = %$options; delete @less{qw(Lines)};
264
my @colordims = $colors->dims;
265
PDL::barf "Lattice: colours must be 3,x,y: got (@colordims)" if @colordims != 3 or $colordims[0] != 3;
266
+ PDL::barf "Lattice: colours' x,y must equal points: got colour=(@colordims) points=($x,$y)" if $colordims[1] != $x or $colordims[2] != $y;
267
$this->add_object(PDL::Graphics::TriD::Triangles->new($points->clump(1..2), $faceidx, $colors->clump(1..$colors->ndims-1), \%less));
268
}
269
if ($shading == 0 or $options->{Lines}) {
0 commit comments