Sha256: 3785de7391ef751e15f08fb97886ea818167f448d4d6078e0fbe0f06601bc53b

Contents?: true

Size: 1.32 KB

Versions: 2

Compression:

Stored size: 1.32 KB

Contents

if RUBY_PLATFORM == 'java'  
  require 'toxiclibs.jar'
  
  module Simulation
    include_package 'toxi.sim.automata'
    include_package 'toxi.sim.dla'
    include_package 'toxi.sim.erosion'
    include_package 'toxi.sim.fluids'
    include_package 'toxi.sim.grayscott'
  end
  
  module Physics
    include_package 'toxi.physics2d.behaviors'
    include_package 'toxi.physics2d.constraints'
    include_package 'toxi.physics2d'
    include_package 'toxi.physics3d.behaviors'
    include_package 'toxi.physics3d.constraints'
    include_package 'toxi.physics3d'
  end
  
  module Volume
    include_package 'toxi.volume'
  end
  
  module Toxi
    include_package 'toxi.color'
    include_package 'toxi.color.theory'
    include_package 'toxi.util.datatypes'
    include_package 'toxi.util.events'
    include_package 'toxi.geom'
    include_package 'toxi.geom.mesh'
    include_package 'toxi.geom.mesh.subdiv'
    include_package 'toxi.geom.nurbs'
    include_package 'toxi.math'  
  end
  
  module Gfx
    include_package 'toxi.processing'
  end
  # to disambiguate our own Vec2D and Vec3D we give new name to toxi versions
  TVec2D = Java::ToxiGeom::Vec2D
  TVec3D = Java::ToxiGeom::Vec3D
  AABB = Java::ToxiGeom::AABB
  Mesh3D = Java::ToxiGeomMesh::Mesh3D
  TriangleMesh = Java::ToxiGeomMesh::TriangleMesh
  Face = Java::ToxiGeomMesh::Face
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
toxiclibs-0.4.0 lib/toxiclibs.rb
toxiclibs-0.3.0.pre lib/toxiclibs.rb