Skip to content

Commit e3a01d2

Browse files
committed
zap GObject_Lattice
1 parent eb32a92 commit e3a01d2

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

lib/PDL/Graphics/TriD/Objects.pm

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ This provides the following class hierarchy:
1616
├ PDL::Graphics::TriD::Lines separate lines
1717
├ PDL::Graphics::TriD::LineStrip continuous paths
1818
├ PDL::Graphics::TriD::Trigrid polygons
19-
└ PDL::Graphics::TriD::GObject_Lattice (abstract) base class
20-
└ PDL::Graphics::TriD::Lattice colored lattice
19+
└ PDL::Graphics::TriD::Lattice colored lattice, maybe filled/shaded
2120
2221
=head1 DESCRIPTION
2322
@@ -180,24 +179,16 @@ sub smoothn { my ($this) = @_;
180179
0..($points->dim(1)-1) );
181180
}
182181

183-
package PDL::Graphics::TriD::GObject_Lattice;
184-
use base qw/PDL::Graphics::TriD::GObject/;
185-
sub r_type {return "SURF2D";}
186-
sub get_valid_options { +{
187-
UseDefcols => 0,
188-
Lines => 1,
189-
Lighting => 0,
190-
}}
191-
192182
package PDL::Graphics::TriD::Lattice;
193-
use base qw/PDL::Graphics::TriD::GObject_Lattice/;
183+
use base qw/PDL::Graphics::TriD::GObject/;
194184
use fields qw/Normals/;
195185
sub cdummies {
196186
my $shading = $_[0]{Options}{Shading};
197187
!$shading ? $_[1]->dummy(1)->dummy(1) :
198188
$shading == 1 ? $_[1]->dummy(1,$_[2]->getdim(2)-1)->dummy(1,$_[2]->getdim(1)-1) :
199189
$_[1]->slice(":," . join ',', map "*$_", ($_[2]->dims)[1,2])
200190
}
191+
sub r_type {return "SURF2D";}
201192
sub get_valid_options { +{
202193
UseDefcols => 0,
203194
Lines => 1,

0 commit comments

Comments
 (0)