Skip to main content

Crate yggdrasil

Crate yggdrasil 

Source

Modules§

parse

Structs§

AnonNode
A node in the scene graph. Each node is designated to a unique layer in the scene graph and within that layer, it can have multiple edges to other nodes in the same layer. Nodes can also have parent-child relationships with nodes in the layers directly above or below them. Each node can hold a set of features, which are key-value pairs that provide additional information about the node. Nodes also support storeing 3D coordinates which can be used for Field-of-View calculations or spatial queries.
BoundingBox
A bounding box is a Axis Aligned Box that represents the bounds of the coordinates in the subtree of a node. It is used for efficient spatial queries and Field-of-View calculations. It is defined by two points: the all-minimum point (minx, miny, minz) and the all-maximum point (maxx, maxy, maxz).
Edge
An edge connecting two nodes in the same layer.
Feature
A feature associated with a node, represented as a key-value pair.
Layer
A Layer in the Scene Graph containing multiple Nodes and their Edges, as weel as the relationships with other layers in the Scene Graph. Each Layer is a well-defined Graph structure representing a specific aspect of the scene, such as semantic relationships or physical connections between objects.
Node
A node in the scene graph. Each node is designated to a unique layer in the scene graph and within that layer, it can have multiple edges to other nodes in the same layer. Nodes can also have parent-child relationships with nodes in the layers directly above or below them. Each node can hold a set of features, which are key-value pairs that provide additional information about the node. Nodes also support storeing 3D coordinates which can be used for Field-of-View calculations or spatial queries.
NodeId
NodeMut
A mutable reference to a Node within a Layer. Tracks previous coordinates to update the position index on drop.
Observer
Observer represent a Field-of-View cone frustum in 3D space. The cone is defined by a position, a viewing direction, and a half-angle (in radians). the frustum is further limited by near and far distances.
SceneGraph
A hierarchical representation of objects and their relationships in a 3D environment. The scene graph is organized into layers, where each layer contains nodes representing objects. The layers together form a DAG Structure, with the top layer representing the root layer of the scene. Within each layer, nodes can have edges connecting them to other nodes in the same layer, forming a graph structure. Nodes on a layer can also have parent-child relationships with nodes of layers that are children of the layer they belong to.

Enums§

Bounds
The bounds of a node in the scene graph can either be:
PosQueryCount
Specifies the number of nodes to return in position-based queries.
RegionMembershipStatus
What a RegionMembershipPredicate concluded about a region.
SceneGraphError

Traits§

RegionMembershipPredicate
A volume that can decide whether an axis-aligned region is worth opening.

Type Aliases§

Coordinate
3D Coordinate type for representing spacial positions. The coordinate system is right-handed with Y-up convention.
Result