Sha256: 92bb67d98f21f14d8551ea71c442e8028820f37b0ed449642785f210f8355b3b
Contents?: true
Size: 967 Bytes
Versions: 1
Compression:
Stored size: 967 Bytes
Contents
#! /usr/bin/env ruby # coding: utf-8 require "pp" require "helper" #require "test/unit" #require "pkg/klass.rb" class TC_Triangle < Test::Unit::TestCase $tolerance = 10.0 ** (-10) #VEC_O = Mageo::Vector3D[0.0, 0.0, 0.0] #VEC_X = Mageo::Vector3D[1.0, 0.0, 0.0] #VEC_Y = Mageo::Vector3D[0.0, 1.0, 0.0] #VEC_Z = Mageo::Vector3D[0.0, 0.0, 1.0] def setup @t00 = CrystalCell::Povray::Triangle.new( [0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.25, 0.5, 0.75] ) end def test_to_pov assert_equal( "triangle{ < 0.0000, 0.0000, 0.0000>,< 1.0000, 0.0000, 0.0000>,< 0.0000, 1.0000, 0.0000> pigment {color rgb< 0.2500, 0.5000, 0.7500>}}", @t00.to_pov ) @t00.transmit = 0.5 assert_equal( "triangle{ < 0.0000, 0.0000, 0.0000>,< 1.0000, 0.0000, 0.0000>,< 0.0000, 1.0000, 0.0000> pigment {color rgb< 0.2500, 0.5000, 0.7500> transmit 0.5000}}", @t00.to_pov ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crystalcell-0.1.1 | test/povray/test_triangle.rb |