Skip to content

Commit 71b7ae2

Browse files
committed
move common fields into FaceAxes
1 parent 9fbf414 commit 71b7ae2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/PDL/Graphics/TriD/Graph.pm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ sub transform {
204204
package # hide from PAUSE
205205
PDL::Graphics::TriD::FaceAxes;
206206
use base qw(PDL::Graphics::TriD::Object);
207-
use fields qw(LatticeObj);
207+
use fields qw(LatticeObj Names Bounds Center);
208208
sub add_lattice_axis {
209209
my ($this) = @_;
210210
my @widths = $this->{Bounds}->slice('0:1')->t->diff2->list;
@@ -229,7 +229,6 @@ sub add_lattice_axis {
229229
package # hide from PAUSE
230230
PDL::Graphics::TriD::CylindricalEquidistantAxes;
231231
use base qw(PDL::Graphics::TriD::FaceAxes);
232-
use fields qw(Names Bounds Center);
233232
use PDL::Core qw(barf float);
234233
use PDL::Constants qw(DEGRAD);
235234
use constant DEG2RAD => 1/DEGRAD;
@@ -317,7 +316,6 @@ sub transform {
317316
package # hide from PAUSE
318317
PDL::Graphics::TriD::PolarStereoAxes;
319318
use base qw(PDL::Graphics::TriD::FaceAxes);
320-
use fields qw(Names Bounds Center);
321319
use PDL::Core qw(barf float);
322320
use PDL::Constants qw(DEGRAD);
323321
use constant DEG2RAD => 1/DEGRAD;

0 commit comments

Comments
 (0)