aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
diff options
context:
space:
mode:
authorDahlia Trimble2008-08-01 05:45:58 +0000
committerDahlia Trimble2008-08-01 05:45:58 +0000
commit1d3677eb9b31cc9a1238caabd464538438d573af (patch)
tree89baf6f5bde57cf3687d9078132d0b3fd07b3b5d /OpenSim/Region/Physics/Meshing/Meshmerizer.cs
parentAdd the missing migration files :/ (diff)
downloadopensim-SC_OLD-1d3677eb9b31cc9a1238caabd464538438d573af.zip
opensim-SC_OLD-1d3677eb9b31cc9a1238caabd464538438d573af.tar.gz
opensim-SC_OLD-1d3677eb9b31cc9a1238caabd464538438d573af.tar.bz2
opensim-SC_OLD-1d3677eb9b31cc9a1238caabd464538438d573af.tar.xz
Thank you jhurliman for a meshmerizer patch that replaces the quaternion->matrix->vertex*matrix->vertex code with a direct transformation.
Diffstat (limited to 'OpenSim/Region/Physics/Meshing/Meshmerizer.cs')
-rw-r--r--OpenSim/Region/Physics/Meshing/Meshmerizer.cs14
1 files changed, 0 insertions, 14 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
index 984114b..58da667 100644
--- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
@@ -1556,20 +1556,6 @@ namespace OpenSim.Region.Physics.Meshing
1556 // m_log.DebugFormat("Starting cutting of the hollow shape from the prim {1}", 0, primName); 1556 // m_log.DebugFormat("Starting cutting of the hollow shape from the prim {1}", 0, primName);
1557 SimpleHull cuttedHull = SimpleHull.SubtractHull(outerHull, cutHull); 1557 SimpleHull cuttedHull = SimpleHull.SubtractHull(outerHull, cutHull);
1558 1558
1559 if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.Circle)
1560 {
1561 Quaternion zFlip = new Quaternion(new Vertex(0.0f, 0.0f, 1.0f), (float)Math.PI);
1562 Vertex vTmp = new Vertex(0.0f, 0.0f, 0.0f);
1563 foreach (Vertex v in cuttedHull.getVertices())
1564 if (v != null)
1565 {
1566 vTmp = v * zFlip;
1567 v.X = vTmp.X;
1568 v.Y = vTmp.Y;
1569 v.Z = vTmp.Z;
1570 }
1571 }
1572
1573 outerHull = cuttedHull; 1559 outerHull = cuttedHull;
1574 } 1560 }
1575 1561