We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933f85b commit 1447b8eCopy full SHA for 1447b8e
1 file changed
lib/PDL/Graphics/TriD.pm
@@ -807,7 +807,7 @@ sub realcoords {
807
my($type,$c) = @_;
808
if(ref $c ne "ARRAY") {
809
my $dim0 = $c->getdim(0);
810
- barf "If one ndarray given for coordinate, must be (3,...) or have default interpretation" if $dim0 != 3;
+ barf "If one ndarray given for coordinate, must be (2|3,...) or have default interpretation" if $dim0 != 2 and $dim0 != 3;
811
return $c->float;
812
}
813
my @c = @$c;
0 commit comments