The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# These objects contain textual descriptions of the graph.
# Placed suitably in relation to origin to be used with a graph.

package PDL::Graphics::TriD::Description;

@ISA=qw/PDL::Graphics::TriD::Object/;

sub new {
	my($type,$text) = @_;
	local $_ = $text;
	s/\\/\\\\/g;
	s/"/\\"/g;
	my $this = bless {
		TText => "[".(join ',',map {"\"$_\""} split "\n",$_)."]"
	},$type;
	return $this;
}

1;