public void Execute(int i) { volumeAccumulator.Accumulate(Vector3.Dot(bodyVerts[bodyTriangles[i].x], Vector3.Cross(bodyVerts[bodyTriangles[i].y], bodyVerts[bodyTriangles[i].z])) * 0.166666f); areaAccumulator.Accumulate(Vector3.Cross(bodyVerts[bodyTriangles[i].y] - bodyVerts[bodyTriangles[i].x], bodyVerts[bodyTriangles[i].z] - bodyVerts[bodyTriangles[i].x]).magnitude * 0.5f); }
public void Execute(int index) { counter.Accumulate(0.1f); }