Space Engineers
Classes | Public Member Functions | Properties | List of all members
Sandbox.Engine.Utils.MyVoxelSegmentation Class Reference

Classes

struct  Segment
 

Public Member Functions

void ClearInput ()
 
void AddInput (Vector3I input)
 
List< SegmentFindSegments (MyVoxelSegmentationType segmentationType=MyVoxelSegmentationType.Optimized, int mergeIterations=1)
 Creates segments from voxel data. More...
 

Properties

int InputCount [get]
 

Detailed Description

Definition at line 45 of file MyVoxelSegmentation.cs.

Member Function Documentation

void Sandbox.Engine.Utils.MyVoxelSegmentation.AddInput ( Vector3I  input)
inline

Definition at line 137 of file MyVoxelSegmentation.cs.

void Sandbox.Engine.Utils.MyVoxelSegmentation.ClearInput ( )
inline

Definition at line 131 of file MyVoxelSegmentation.cs.

List<Segment> Sandbox.Engine.Utils.MyVoxelSegmentation.FindSegments ( MyVoxelSegmentationType  segmentationType = MyVoxelSegmentationType.Optimized,
int  mergeIterations = 1 
)
inline

Creates segments from voxel data.

Parameters
filledVoxelsPositions on filled voxels (or one material).
mergeIterationsNumber of post-process merge iterations, one should be always sufficient, algorithm works pretty well with 0 too.
fastMethodFast method is about 3x faster, but prefers longer boxes instead of cubic and generates about 5 - 10% more segments.
Returns
List of segments.

Definition at line 152 of file MyVoxelSegmentation.cs.

Property Documentation

int Sandbox.Engine.Utils.MyVoxelSegmentation.InputCount
get

Definition at line 143 of file MyVoxelSegmentation.cs.


The documentation for this class was generated from the following file: