@@ -120,7 +120,7 @@ sub PDL::Graphics::TriD::Material::tovrml {
120120 my $ambi = (pdl(@{$this -> {Ambient }})**2)-> sum /
121121 (pdl(@{$this -> {Diffuse }})**2)-> sum;
122122 $ambi = sqrt ($ambi );
123- new PDL::Graphics::VRMLNode(' Material' ,
123+ PDL::Graphics::VRMLNode-> new (' Material' ,
124124 ' diffuseColor' => vrml3v($this -> {Diffuse }),
125125 ' emissiveColor' => vrml3v($this -> {Emissive }),
126126 ' shininess' => $this -> {Shine },
@@ -131,14 +131,14 @@ sub PDL::Graphics::TriD::Material::tovrml {
131131
132132sub PDL ::Graphics::TriD::Scale::tovrml {my ($this ) = @_ ;
133133 print " Scale " ,(join ' ,' ,@{$this -> {Args }})," \n " ;
134- new PDL::Graphics::VRMLNode(' Transform' ,
134+ PDL::Graphics::VRMLNode-> new (' Transform' ,
135135 ' scale' ,vrml3v(@{$this -> {Args }}));
136136 }
137137
138138
139139sub PDL ::Graphics::TriD::Translation::tovrml {
140140 my ($this ) = @_ ;
141- new PDL::Graphics::VRMLNode(' Transform' ,
141+ PDL::Graphics::VRMLNode-> new (' Transform' ,
142142 ' translation' ,vrml3v(@{$this -> {Args }}));
143143}
144144
@@ -156,7 +156,7 @@ sub PDL::Graphics::TriD::Quaternion::tovrml {my($this) = @_;
156156 # die "Unnormalized Quaternion!\n";
157157 $this -> normalize_this();
158158 }
159- new PDL::Graphics::VRMLNode(' Transform' ,
159+ PDL::Graphics::VRMLNode-> new (' Transform' ,
160160 ' rotation' ,vrml3v(@{$this }[1..3])." $this ->[0]" );
161161}
162162
@@ -185,27 +185,27 @@ sub PDL::Graphics::TriD::GObject::tovrml_graph {
185185
186186sub PDL ::Graphics::TriD::Points::vdraw {
187187 my ($this ,$points ) = @_ ;
188- new PDL::Graphics::VRMLNode(' Shape' ,
188+ PDL::Graphics::VRMLNode-> new (' Shape' ,
189189 ' geometry' =>
190- new PDL::Graphics::VRMLPdlNode($points ,$this -> {Colors },
190+ PDL::Graphics::VRMLPdlNode-> new ($points ,$this -> {Colors },
191191 {Title => ' PointSet' ,
192192 DefColors => $this -> defcols}));
193193}
194194
195195sub PDL ::Graphics::TriD::LineStrip::vdraw {
196196 my ($this ,$points ) = @_ ;
197- new PDL::Graphics::VRMLNode(' Shape' ,
197+ PDL::Graphics::VRMLNode-> new (' Shape' ,
198198 ' geometry' =>
199- new PDL::Graphics::VRMLPdlNode($points ,$this -> {Colors },
199+ PDL::Graphics::VRMLPdlNode-> new ($points ,$this -> {Colors },
200200 {Title => ' IndexedLineSet' ,
201201 DefColors => $this -> defcols}));
202202}
203203
204204sub PDL ::Graphics::TriD::Lattice::vdraw {
205205 my ($this ,$points ) = @_ ;
206- new PDL::Graphics::VRMLNode(' Shape' ,
206+ PDL::Graphics::VRMLNode-> new (' Shape' ,
207207 ' geometry' =>
208- new PDL::Graphics::VRMLPdlNode($points ,$this -> {Colors },
208+ PDL::Graphics::VRMLPdlNode-> new ($points ,$this -> {Colors },
209209 {Title => ' IndexedLineSet' ,
210210 DefColors => $this -> defcols,
211211 IsLattice => 1}));
@@ -215,14 +215,14 @@ sub PDL::Graphics::TriD::SLattice::vdraw {
215215 my ($this ,$points ) = @_ ;
216216 my $children = [vrn(' Shape' ,
217217 ' geometry' =>
218- new PDL::Graphics::VRMLPdlNode($points ,$this -> {Colors },
218+ PDL::Graphics::VRMLPdlNode-> new ($points ,$this -> {Colors },
219219 {Title => ' IndexedFaceSet' ,
220220 DefColors => $this -> defcols,
221221 IsLattice => 1,
222222 }))];
223223 push @$children , vrn(' Shape' ,
224224 ' geometry' =>
225- new PDL::Graphics::VRMLPdlNode($points ,$this -> {Colors },
225+ PDL::Graphics::VRMLPdlNode-> new ($points ,$this -> {Colors },
226226 {Title => ' IndexedLineSet' ,
227227 DefColors => 0,
228228 Surface => 1,
@@ -242,15 +242,15 @@ sub PDL::Graphics::TriD::SLattice_S::vdraw {
242242 ' appearance' => vrn(' Appearance' ,
243243 ' material' => $mat ),
244244 ' geometry' =>
245- new PDL::Graphics::VRMLPdlNode($points ,$this -> {Colors },
245+ PDL::Graphics::VRMLPdlNode-> new ($points ,$this -> {Colors },
246246 {Title => ' IndexedFaceSet' ,
247247 DefColors => 1,
248248 IsLattice => 1,
249249 Smooth => $this -> {Options }-> {Smooth },
250250 }))];
251251 push @$children , vrn(' Shape' ,
252252 ' geometry' =>
253- new PDL::Graphics::VRMLPdlNode($points ,$this -> {Colors },
253+ PDL::Graphics::VRMLPdlNode-> new ($points ,$this -> {Colors },
254254 {Title => ' IndexedLineSet' ,
255255 DefColors => 0,
256256 Surface => 1,
@@ -561,7 +561,7 @@ package PDL::Graphics::TriD::VRML;
561561$PDL::Graphics::VRML::current_window = undef ;
562562$PDL::Graphics::TriD::create_window_sub =
563563$PDL::Graphics::TriD::create_window_sub = sub {
564- return new PDL::Graphics::TriD::Window;
564+ return PDL::Graphics::TriD::Window-> new ;
565565};
566566
567567# set up the default parameters for VRML
0 commit comments