From fdd238833163eb947986bfcdd09da82f6949a5f2 Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Sat, 29 Nov 2008 11:02:14 +0000 Subject: Update meshing code to sync with current PrimMesher.cs on forge. Migrate sculpt meshing code to primMesher version. This should result in more accurate physical sculpted prim proxies. Remove much obsolete code from Region/Physics/Meshing --- OpenSim/Region/Physics/Meshing/Mesh.cs | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'OpenSim/Region/Physics/Meshing/Mesh.cs') diff --git a/OpenSim/Region/Physics/Meshing/Mesh.cs b/OpenSim/Region/Physics/Meshing/Mesh.cs index 583b485..5a565ff 100644 --- a/OpenSim/Region/Physics/Meshing/Mesh.cs +++ b/OpenSim/Region/Physics/Meshing/Mesh.cs @@ -115,26 +115,6 @@ namespace OpenSim.Region.Physics.Meshing vertices.Remove(v); } - public void RemoveTrianglesOutside(SimpleHull hull) - { - int i; - - for (i = 0; i < triangles.Count; i++) - { - Triangle t = triangles[i]; - Vertex v1 = t.v1; - Vertex v2 = t.v2; - Vertex v3 = t.v3; - PhysicsVector m = v1 + v2 + v3; - m /= 3.0f; - if (!hull.IsPointIn(new Vertex(m))) - { - triangles.RemoveAt(i); - i--; - } - } - } - public void Add(List lv) { foreach (Vertex v in lv) -- cgit v1.1