Class: Collada::Conversion::Vertex
- Inherits:
-
Object
- Object
- Collada::Conversion::Vertex
- Defined in:
- lib/collada/conversion/mesh.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
- #hash ⇒ Object
- #index ⇒ Object
-
#initialize(attributes, format) ⇒ Vertex
constructor
The format provided here is used purely to calculate unique vertices.
- #to_a(format = @format) ⇒ Object
Constructor Details
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
94 95 96 |
# File 'lib/collada/conversion/mesh.rb', line 94 def attributes @attributes end |
Instance Method Details
#<=>(other) ⇒ Object
100 101 102 |
# File 'lib/collada/conversion/mesh.rb', line 100 def <=>(other) to_a <=> other.to_a end |
#hash ⇒ Object
108 109 110 |
# File 'lib/collada/conversion/mesh.rb', line 108 def hash to_a.hash end |
#index ⇒ Object
104 105 106 |
# File 'lib/collada/conversion/mesh.rb', line 104 def index @attributes[:vertex][:index] end |
#to_a(format = @format) ⇒ Object
96 97 98 |
# File 'lib/collada/conversion/mesh.rb', line 96 def to_a(format = @format) format.call(@attributes) end |