From 88fba448a19e805b1908e9fd2cb5021c7470ed7b Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Fri, 1 Aug 2008 05:48:24 +0000 Subject: reinstates torus profile zflip which was mistakenly removed in patch 1870 --- OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index 58da667..984114b 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs @@ -1556,6 +1556,20 @@ namespace OpenSim.Region.Physics.Meshing // m_log.DebugFormat("Starting cutting of the hollow shape from the prim {1}", 0, primName); SimpleHull cuttedHull = SimpleHull.SubtractHull(outerHull, cutHull); + if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.Circle) + { + Quaternion zFlip = new Quaternion(new Vertex(0.0f, 0.0f, 1.0f), (float)Math.PI); + Vertex vTmp = new Vertex(0.0f, 0.0f, 0.0f); + foreach (Vertex v in cuttedHull.getVertices()) + if (v != null) + { + vTmp = v * zFlip; + v.X = vTmp.X; + v.Y = vTmp.Y; + v.Z = vTmp.Z; + } + } + outerHull = cuttedHull; } -- cgit v1.1