Show / Hide Table of Contents

Class FaceDataSerialization

This class contains information for iterating through the faces of a cube.

Inheritance
System.Object
FaceDataSerialization
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CarbideFunction.Wildtile
Syntax
public static class FaceDataSerialization

Fields

serializationFaces

A static list of the 6 faces of a cube, fully described.

Declaration
public static readonly FaceDataSerialization.SerializationFace[] serializationFaces
Field Value
Type Description
FaceDataSerialization.SerializationFace[]

Methods

EnumerateMatchingVertexContents(Int32, FaceDataSerialization.SerializationFace)

List all the marching cube indices that would match with the wholeModuleVertexContents marching cube index along thisModuleFace.

This enumeration will always have 16 elements.

Declaration
public static IEnumerable<int> EnumerateMatchingVertexContents(int wholeModuleVertexContents, FaceDataSerialization.SerializationFace thisModuleFace)
Parameters
Type Name Description
System.Int32 wholeModuleVertexContents
FaceDataSerialization.SerializationFace thisModuleFace
Returns
Type Description
IEnumerable<System.Int32>

GetClockwiseFace(Face, Int32)

Look up the face if the viewer rotated around the cube clockwise numberOfSteps from above.

Up and down faces are unchanged.

Declaration
public static Face GetClockwiseFace(Face face, int numberOfSteps)
Parameters
Type Name Description
Face face
System.Int32 numberOfSteps
Returns
Type Description
Face

GetNextClockwiseFace(Face)

Look up the face if the viewer rotated around the cube clockwise from above.

Up and down faces are unchanged.

Declaration
public static Face GetNextClockwiseFace(Face face)
Parameters
Type Name Description
Face face
Returns
Type Description
Face

GetOppositeFace(Face)

Look up the opposite face for face.

Declaration
public static Face GetOppositeFace(Face face)
Parameters
Type Name Description
Face face
Returns
Type Description
Face

ToMask(Int32[])

Convert bit indices into a bitmask.

This method is designed for use with .

Declaration
public static int ToMask(int[] contentsBitIndices)
Parameters
Type Name Description
System.Int32[] contentsBitIndices
Returns
Type Description
System.Int32

ToSerializationFace(Face)

Find a from a .

Declaration
public static FaceDataSerialization.SerializationFace ToSerializationFace(Face face)
Parameters
Type Name Description
Face face
Returns
Type Description
FaceDataSerialization.SerializationFace
In This Article
Generated by DocFX Version: 4.1.0 - click to show/hide other versions