Skip to content

Commit 671e82a

Browse files
committed
demo 3d not Smooth on owl and logo
1 parent c178515 commit 671e82a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/PDL/Demos/TriD1.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ my @demo = (
5757
$c22 = cos(PI/8); $s22 = sin(PI/8);
5858
$rot22 = pdl [$c22,$s22,0],[-$s22,$c22,0],[0,0,1]; # +22deg about vert
5959
$vertices = ($vertices x $rotate_m x $rot22);
60-
trigrid3d($vertices,$faceidx);
60+
trigrid3d($vertices,$faceidx,{Smooth=>0});
6161
# [press 'q' in the graphics window when done]
6262
|],
6363

6464
(!defined $owlfile ? () : [actnw => q|
6565
# Show an owl loaded from an STL file
6666
use PDL::IO::STL;
6767
($vertices, $faceidx) = rstl $|.__PACKAGE__.q|::owlfile;
68-
trigrid3d($vertices,$faceidx);
68+
trigrid3d($vertices,$faceidx,{Smooth=>0});
6969
# [press 'q' in the graphics window when done]
7070
|]),
7171

0 commit comments

Comments
 (0)