/// <summary> /// Rotates the mesh /// </summary> /// <param name="q"></param> public void AddRot(Quat q) { int i; int numVerts = coords.Count; for (i = 0; i < numVerts; i++) coords [i] *= q; if (normals != null) { int numNormals = normals.Count; for (i = 0; i < numNormals; i++) normals [i] *= q; } if (viewerFaces != null) { int numViewerFaces = viewerFaces.Count; for (i = 0; i < numViewerFaces; i++) { ViewerFace v = viewerFaces [i]; v.v1 *= q; v.v2 *= q; v.v3 *= q; v.n1 *= q; v.n2 *= q; v.n3 *= q; viewerFaces [i] = v; } } }
internal void AddRot(Quat q) { int i; int numVerts = coords.Count; for (i = 0; i < numVerts; i++) coords [i] *= q; if (calcVertexNormals) { int numNormals = vertexNormals.Count; for (i = 0; i < numNormals; i++) vertexNormals [i] *= q; faceNormal *= q; cutNormal1 *= q; cutNormal2 *= q; } }
public void AddRot(Quat q) { v1 *= q; v2 *= q; v3 *= q; n1 *= q; n2 *= q; n3 *= q; }
/// <summary> /// Rotates the mesh /// </summary> /// <param name="q"></param> public void AddRot(Quat q) { int i; int numVerts = this.coords.Count; for (i = 0; i < numVerts; i++) this.coords[i] *= q; int numNormals = this.normals.Count; for (i = 0; i < numNormals; i++) this.normals[i] *= q; if (this.viewerFaces != null) { int numViewerFaces = this.viewerFaces.Count; for (i = 0; i < numViewerFaces; i++) { ViewerFace v = this.viewerFaces[i]; v.v1 *= q; v.v2 *= q; v.v3 *= q; v.n1 *= q; v.n2 *= q; v.n3 *= q; this.viewerFaces[i] = v; } } }