Module model

Source
Expand description

Model specific structs, enums and functions.

§Examples

which are also unit tests:

Model Model from memory Model from file Model from mesh Model bounds Model draw Model draw with material Model intersect Model Anims Model Nodes ModelNode

Structs§

Anim
A link to a Model’s animation! You can use this to get some basic information about the animation, or store it for reference. This maintains a link to the Model asset, and will keep it alive as long as this object lives. https://stereokit.net/Pages/StereoKit/Anim.html
Anims
Animations of a Model https://stereokit.net/Pages/StereoKit/ModelAnimCollection.html
Info
One Info of a ModelNode https://stereokit.net/Pages/StereoKit/ModelNodeInfoCollection.html
Infos
Infos of a ModelNode https://stereokit.net/Pages/StereoKit/ModelNodeInfoCollection.html
Model
A Model is a collection of meshes, materials, and transforms that make up a visual element! This is a great way to group together complex objects that have multiple parts in them, and in fact, most model formats are composed this way already!
ModelNode
This class is a link to a node in a Model’s internal hierarchy tree. It’s composed of node information, and links to the directly adjacent tree nodes. https://stereokit.net/Pages/StereoKit/ModelNode.html
NodeIter
Iterator of the nodes of a model. Can be instanciate from Model
Nodes
Nodes of a Model https://stereokit.net/Pages/StereoKit/ModelNodeCollection.html https://stereokit.net/Pages/StereoKit/ModelVisualCollection.html
_ModelT
StereoKit internal type.

Enums§

AnimMode
Describes how an animation is played back, and what to do when the animation hits the end. https://stereokit.net/Pages/StereoKit/AnimMode.html

Functions§

model_addref
model_anim_active
model_anim_active_completion
model_anim_active_mode
model_anim_active_time
model_anim_count
model_anim_find
model_anim_get_duration
model_anim_get_name
model_copy
model_create
model_create_file
model_create_mem
model_create_mesh
model_draw
model_draw_mat
model_find
model_get_bounds
model_get_id
model_node_add
model_node_add_child
model_node_child
model_node_count
model_node_find
model_node_get_material
model_node_get_mesh
model_node_get_name
model_node_get_root
model_node_get_solid
model_node_get_transform_local
model_node_get_transform_model
model_node_get_visible
model_node_index
model_node_info_clear
model_node_info_count
model_node_info_get
model_node_info_iterate
model_node_info_remove
model_node_info_set
model_node_iterate
model_node_parent
model_node_set_material
model_node_set_mesh
model_node_set_name
model_node_set_solid
model_node_set_transform_local
model_node_set_transform_model
model_node_set_visible
model_node_sibling
model_node_visual_count
model_node_visual_index
model_play_anim
model_play_anim_idx
model_ray_intersect
model_ray_intersect_bvh
model_ray_intersect_bvh_detailed
model_recalculate_bounds
model_recalculate_bounds_exact
model_release
model_set_anim_completion
model_set_anim_time
model_set_bounds
model_set_id
model_step_anim
model_subset_count

Type Aliases§

ModelNodeId
ModelT
StereoKit ffi type.