Show / Hide Table of Contents

Class HashFaces

Inheritance
System.Object
HashFaces
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.Editor
Syntax
public static class HashFaces

Fields

endNormalHashShift

Declaration
public const int endNormalHashShift = 12
Field Value
Type Description
System.Int32

startNormalHashShift

Declaration
public const int startNormalHashShift = 4
Field Value
Type Description
System.Int32

Methods

CombineFaceEdgeHashes(IEnumerable<IntegerType>)

Declaration
public static IntegerType CombineFaceEdgeHashes(IEnumerable<IntegerType> edgeHashes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IntegerType> edgeHashes
Returns
Type Description
IntegerType

FromFaceEdges(IEnumerable<Edge>, Int32, Int32)

Declaration
public static FaceHash FromFaceEdges(IEnumerable<Edge> faceEdges, int positionHashResolution, int normalHashResolution)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Edge> faceEdges
System.Int32 positionHashResolution
System.Int32 normalHashResolution
Returns
Type Description
FaceHash

FromHorizontallyOppositeFaceEdges(IEnumerable<Edge>, Int32, Int32)

Declaration
public static FaceHash FromHorizontallyOppositeFaceEdges(IEnumerable<Edge> faceEdges, int positionHashResolution, int normalHashResolution)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Edge> faceEdges
System.Int32 positionHashResolution
System.Int32 normalHashResolution
Returns
Type Description
FaceHash

FromVerticallyOppositeFaceEdges(IEnumerable<Edge>, Int32, Int32)

Declaration
public static FaceHash FromVerticallyOppositeFaceEdges(IEnumerable<Edge> faceEdges, int positionHashResolution, int normalHashResolution)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Edge> faceEdges
System.Int32 positionHashResolution
System.Int32 normalHashResolution
Returns
Type Description
FaceHash

HashEdge(Edge, Int32, Int32)

Declaration
public static IntegerType HashEdge(Edge edge, int positionHashResolution, int normalHashResolution)
Parameters
Type Name Description
Edge edge
System.Int32 positionHashResolution
System.Int32 normalHashResolution
Returns
Type Description
IntegerType

HashEdgeMaterial(Edge)

Declaration
public static IntegerType HashEdgeMaterial(Edge edge)
Parameters
Type Name Description
Edge edge
Returns
Type Description
IntegerType

HashEdgeNormals(Edge, Int32)

Declaration
public static IntegerType HashEdgeNormals(Edge edge, int normalHashResolution)
Parameters
Type Name Description
Edge edge
System.Int32 normalHashResolution
Returns
Type Description
IntegerType

HashEdgePositions(Edge, Int32)

Declaration
public static IntegerType HashEdgePositions(Edge edge, int positionHashResolution)
Parameters
Type Name Description
Edge edge
System.Int32 positionHashResolution
Returns
Type Description
IntegerType

HashEdges(IEnumerable<Edge>, Int32, Int32)

Declaration
public static IEnumerable<IntegerType> HashEdges(IEnumerable<Edge> edges, int positionHashResolution, int normalHashResolution)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Edge> edges
System.Int32 positionHashResolution
System.Int32 normalHashResolution
Returns
Type Description
System.Collections.Generic.IEnumerable<IntegerType>

HashHorizontallyOppositeEdges(IEnumerable<Edge>, Int32, Int32)

Declaration
public static IEnumerable<IntegerType> HashHorizontallyOppositeEdges(IEnumerable<Edge> edges, int positionHashResolution, int normalHashResolution)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Edge> edges
System.Int32 positionHashResolution
System.Int32 normalHashResolution
Returns
Type Description
System.Collections.Generic.IEnumerable<IntegerType>

HashQuantizedPosition(Vector2, Int32)

Declaration
public static IntegerType HashQuantizedPosition(Vector2 vector, int hashResolution)
Parameters
Type Name Description
Vector2 vector
System.Int32 hashResolution
Returns
Type Description
IntegerType

HashVerticallyOppositeEdges(IEnumerable<Edge>, Int32, Int32)

Declaration
public static IEnumerable<IntegerType> HashVerticallyOppositeEdges(IEnumerable<Edge> edges, int positionHashResolution, int normalHashResolution)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Edge> edges
System.Int32 positionHashResolution
System.Int32 normalHashResolution
Returns
Type Description
System.Collections.Generic.IEnumerable<IntegerType>

HorizontallyInvertFaceEdge(Edge)

Declaration
public static Edge HorizontallyInvertFaceEdge(Edge edge)
Parameters
Type Name Description
Edge edge
Returns
Type Description
Edge

HorizontallyInvertNormal(Vector3)

Declaration
public static Vector3 HorizontallyInvertNormal(Vector3 normal)
Parameters
Type Name Description
Vector3 normal
Returns
Type Description
Vector3

HorizontallyInvertVertex(Vector2)

Declaration
public static Vector2 HorizontallyInvertVertex(Vector2 vertex)
Parameters
Type Name Description
Vector2 vertex
Returns
Type Description
Vector2

VerticallyInvertFaceEdge(Edge)

Declaration
public static Edge VerticallyInvertFaceEdge(Edge edge)
Parameters
Type Name Description
Edge edge
Returns
Type Description
Edge

VerticallyInvertNormal(Vector3)

Declaration
public static Vector3 VerticallyInvertNormal(Vector3 normal)
Parameters
Type Name Description
Vector3 normal
Returns
Type Description
Vector3

VerticallyInvertVertex(Vector2)

Declaration
public static Vector2 VerticallyInvertVertex(Vector2 vertex)
Parameters
Type Name Description
Vector2 vertex
Returns
Type Description
Vector2
In This Article
Generated by DocFX Version: 3.2.1 - click to show/hide other versions