Toast Engine
Loading...
Searching...
No Matches
component_classification.hpp File Reference

TODO: Brief description of the file's purpose. More...

#include "anchor_mask.hpp"
#include "physics_settings.hpp"
#include <glm/glm.hpp>
#include <toast/voxel/connectivity.hpp>
Include dependency graph for component_classification.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  physics::DetachedComponent

Enumerations

enum class  ComponentClass : uint8_t { anchored , detached , dropped }

Functions

auto physics::classifyComponents (const voxel::Connectivity &c, glm::uvec3, AnchorMask mask) -> std::vector< ComponentClass >
auto physics::buildDetachedComponents (const voxel::Connectivity &c, std::span< const ComponentClass > classes, glm::uvec3 brick_size, ComponentClass target_class) -> std::vector< DetachedComponent >
auto physics::maxFragmentExtentBricks () -> int32_t
auto physics::splitBySpatialCompactness (std::vector< DetachedComponent > components, int32_t max_extent_bricks) -> std::vector< DetachedComponent >

Detailed Description

TODO: Brief description of the file's purpose.

Author
Xein
Date
19 Sep 2026