Struct RegionBoxVoxelVisibility.Region ​
Namespace: ValveResourceFormat.Blocks
Assembly: ValveResourceFormat.dll
Represents one box of space belonging to a cluster.
csharp
public readonly struct RegionBoxVoxelVisibility.RegionConstructors ​
Region(AABB, ushort, ushort) ​
Represents one box of space belonging to a cluster.
csharp
public Region(AABB bounds, ushort clusterId, ushort mergedRow = 0)Parameters ​
bounds AABB
The box this region covers.
clusterId ushort
The cluster this box belongs to.
mergedRow ushort
One based index of the merged row seen from inside this box, 0 for none.
Properties ​
Bounds ​
Gets the box this region covers.
csharp
public AABB Bounds { get; }Property Value ​
ClusterId ​
Gets the cluster this box belongs to, or RegionBoxVoxelVisibility.NoCluster when none does.
csharp
public ushort ClusterId { get; }Property Value ​
ushort
HasCluster ​
Gets whether a cluster claims this box at all.
csharp
public bool HasCluster { get; }Property Value ​
bool
MergedRow ​
Gets the one based index of the merged row a point inside this box sees in place of its cluster's row, or 0 when it sees its cluster's row.
csharp
public ushort MergedRow { get; }Property Value ​
ushort

