MixedRealityExtension.ProceduralToolkit.MeshDraft._AddQuad(UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Vector3)

Here are the examples of the csharp api MixedRealityExtension.ProceduralToolkit.MeshDraft._AddQuad(UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Vector3) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

19 View Source File : MeshDraft.cs
License : MIT License
Project Creator : microsoft

public MeshDraft AddQuad(Vector3 origin, Vector3 width, Vector3 height, bool calculateNormal)
		{
			Vector3 vertex0 = origin;
			Vector3 vertex1 = origin + height;
			Vector3 vertex2 = origin + height + width;
			Vector3 vertex3 = origin + width;
			if (calculateNormal)
			{
				Vector3 normal = Vector3.Cross(height, width).normalized;
				return AddQuad(vertex0, vertex1, vertex2, vertex3, normal, normal, normal, normal);
			}
			return _AddQuad(vertex0, vertex1, vertex2, vertex3);
		}

19 View Source File : MeshDraft.cs
License : MIT License
Project Creator : microsoft

public MeshDraft AddQuad(Vector3 vertex0, Vector3 vertex1, Vector3 vertex2, Vector3 vertex3, bool calculateNormal)
		{
			if (calculateNormal)
			{
				Vector3 normal = Vector3.Cross(vertex1 - vertex0, vertex3 - vertex0).normalized;
				return AddQuad(vertex0, vertex1, vertex2, vertex3, normal, normal, normal, normal);
			}
			return _AddQuad(vertex0, vertex1, vertex2, vertex3);
		}

19 View Source File : MeshDraft.cs
License : MIT License
Project Creator : microsoft

public MeshDraft AddQuad(Vector3 vertex0, Vector3 vertex1, Vector3 vertex2, Vector3 vertex3,
			Vector3 normal0, Vector3 normal1, Vector3 normal2, Vector3 normal3)
		{
			normals.Add(normal0);
			normals.Add(normal1);
			normals.Add(normal2);
			normals.Add(normal3);
			return _AddQuad(vertex0, vertex1, vertex2, vertex3);
		}