home *** CD-ROM | disk | FTP | other *** search
/ Freelog 100 / FreelogNo100-NovembreDecembre2010.iso / Graphisme / GoogleSketchUp / GoogleSketchUpWFR.exe / GoogleSketchUp8.msi / SketchUpMeta.cab / ocean_extension.rb.78D17A5F_0E0A_44D2_877D_2C56D45D16B7 < prev    next >
Encoding:
Text File  |  2010-08-26  |  1.0 KB  |  25 lines

  1. # Copyright 2005-2009, Google, Inc.
  2.  
  3. # This extension enables placing a model in Google Earth relative to the ocean floor,
  4. # instead of relative to ground (sea level).
  5.  
  6. # Permission to use, copy, modify, and distribute this software for
  7. # any purpose and without fee is hereby granted, provided that the above
  8. # copyright notice appear in all copies.
  9.  
  10. # THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
  11. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  12. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  13. #-----------------------------------------------------------------------------
  14. require 'sketchup.rb'
  15. require 'extensions.rb'
  16. require 'LangHandler.rb'
  17.  
  18. $oceanStrings = LanguageHandler.new("ocean.strings")
  19.  
  20. oceanExtension = SketchupExtension.new $oceanStrings.GetString("Ocean Modeling"), "ocean/ocean.rb"
  21.  
  22. oceanExtension .description=$oceanStrings.GetString("Adds the ability to model on the ocean floor after using Add Location to import ocean terrain.")
  23.  
  24. Sketchup.register_extension oceanExtension, false
  25.