Skip to content

Commit 1447b8e

Browse files
committed
realcoords allow ndarray of (2,...)
1 parent 933f85b commit 1447b8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/PDL/Graphics/TriD.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ sub realcoords {
807807
my($type,$c) = @_;
808808
if(ref $c ne "ARRAY") {
809809
my $dim0 = $c->getdim(0);
810-
barf "If one ndarray given for coordinate, must be (3,...) or have default interpretation" if $dim0 != 3;
810+
barf "If one ndarray given for coordinate, must be (2|3,...) or have default interpretation" if $dim0 != 2 and $dim0 != 3;
811811
return $c->float;
812812
}
813813
my @c = @$c;

0 commit comments

Comments
 (0)