Slice..::..NewFace Method

Creates a new face given two straddle edges

Namespace:  TVGL.Boolean_Operations
Assembly:  TessellationAndVoxelizationGeometryLibraryUniversal (in TessellationAndVoxelizationGeometryLibraryUniversal.dll)

Syntax


public static List<PolygonalFace> NewFace(
	Slice..::..StraddleEdge st1,
	Slice..::..StraddleEdge st2,
	Dictionary<int, Edge> straddleEdgesDict,
	Dictionary<int, PolygonalFace> straddleFaces,
	ref List<Edge> newEdges,
	ref HashSet<int> adjOnsideFaceIndices,
	bool lastNewFace
)
Public Shared Function NewFace ( _
	st1 As Slice..::..StraddleEdge, _
	st2 As Slice..::..StraddleEdge, _
	straddleEdgesDict As Dictionary(Of Integer, Edge), _
	straddleFaces As Dictionary(Of Integer, PolygonalFace), _
	ByRef newEdges As List(Of Edge), _
	ByRef adjOnsideFaceIndices As HashSet(Of Integer), _
	lastNewFace As Boolean _
) As List(Of PolygonalFace)
public:
static List<PolygonalFace^>^ NewFace(
	Slice..::..StraddleEdge^ st1, 
	Slice..::..StraddleEdge^ st2, 
	Dictionary<int^, Edge^>^ straddleEdgesDict, 
	Dictionary<int^, PolygonalFace^>^ straddleFaces, 
	List<Edge^>^% newEdges, 
	HashSet<int^>^% adjOnsideFaceIndices, 
	bool^ lastNewFace
)

Parameters

st1
Type: TVGL.Boolean_Operations..::..Slice..::..StraddleEdge
The ST1.
st2
Type: TVGL.Boolean_Operations..::..Slice..::..StraddleEdge
The ST2.
straddleEdgesDict
Type: Dictionary<(Of <(<'Int32, Edge>)>)>
The straddle edges dictionary.
straddleFaces
Type: Dictionary<(Of <(<'Int32, PolygonalFace>)>)>
The straddle faces.
newEdges
Type: List<(Of <(<'Edge>)>)>%
The new edges.
adjOnsideFaceIndices
Type: HashSet<(Of <(<'Int32>)>)>%
The adj onside face indices.
lastNewFace
Type: Boolean
if set to true [last new face].

Return Value

List<PolygonalFace>.

Exceptions


ExceptionCondition
Exception No shared face exists between these two straddle edges or There should only be one boundary edge. There must be 2 straddle edges for this shared face. or All edges of the shared face are straddle edges. This cannot be. or This should never be the case. The boundary edge should be have the sharedFace as owned or other or There should only be one boundary edge. There must be 2 straddle edges for this shared face. or All edges of the shared face are straddle edges. This cannot be. or This should never be the case. The boundary edge should be have the sharedFace as owned or other or Error, the straddle edges do not match up at a common vertex