Class: TinyGLTF::Node
- Inherits:
-
Object
show all
- Includes:
- Base
- Defined in:
- lib/tiny_gltf.rb,
ext/tiny_gltf/rb_tiny_gltf_init.c
Instance Attribute Summary
Attributes included from Base
#model
Instance Method Summary
collapse
Methods included from Base
included, #inspect, #to_h, #to_json
Instance Method Details
#camera ⇒ Object
444
445
446
|
# File 'lib/tiny_gltf.rb', line 444
def camera
camera_index && model.cameras[camera_index]
end
|
#children ⇒ Object
440
441
442
|
# File 'lib/tiny_gltf.rb', line 440
def children
children_indices.map { |index| model.nodes[index] }
end
|
#mesh ⇒ Object
436
437
438
|
# File 'lib/tiny_gltf.rb', line 436
def mesh
mesh_index && model.meshes[mesh_index]
end
|
#skin ⇒ Object
432
433
434
|
# File 'lib/tiny_gltf.rb', line 432
def skin
skin_index && model.skins[skin_index]
end
|