Module: TT::Image

Defined in:
TT_Lib2/image.rb

Overview

Collection of Face methods.

Since:

  • 2.0.0

Class Method Summary collapse

Class Method Details

.material(image) ⇒ Sketchup::Material

Returns the material for the given Image.

Parameters:

  • image (Sketchup::Image)

Returns:

  • (Sketchup::Material)

Since:

  • 2.0.0



22
23
24
25
26
# File 'TT_Lib2/image.rb', line 22

def self.material(image)
  definition = TT::Instance.definition(image)
  face = definition.entities.grep(Sketchup::Face).first
  face.material
end