Definition at line 45 of file MyVoxelSegmentation.cs.
void Sandbox.Engine.Utils.MyVoxelSegmentation.AddInput |
( |
Vector3I |
input | ) |
|
|
inline |
void Sandbox.Engine.Utils.MyVoxelSegmentation.ClearInput |
( |
| ) |
|
|
inline |
List<Segment> Sandbox.Engine.Utils.MyVoxelSegmentation.FindSegments |
( |
MyVoxelSegmentationType |
segmentationType = MyVoxelSegmentationType.Optimized , |
|
|
int |
mergeIterations = 1 |
|
) |
| |
|
inline |
Creates segments from voxel data.
- Parameters
-
filledVoxels | Positions on filled voxels (or one material). |
mergeIterations | Number of post-process merge iterations, one should be always sufficient, algorithm works pretty well with 0 too. |
fastMethod | Fast 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.
int Sandbox.Engine.Utils.MyVoxelSegmentation.InputCount |
|
get |
The documentation for this class was generated from the following file: