From 7b4991430b1667ebdab50daa94f23fde958140f6 Mon Sep 17 00:00:00 2001
From: Dahlia Trimble
Date: Sat, 21 Jun 2008 08:50:56 +0000
Subject: Changes selection criteria to allow meshing of more sphere prim
configurations. Adds comments to some functions in Meshmerizer.cs.
---
OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 15 ++++++++++++++-
OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 5 ++++-
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
index bf6b70c..c9be614 100644
--- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
@@ -1265,7 +1265,13 @@ namespace OpenSim.Region.Physics.Meshing
return result;
}
-
+ ///
+ /// builds an icosahedral geodesic sphere - used as default in place of problem meshes
+ ///
+ ///
+ ///
+ ///
+ ///
private static Mesh CreateSphereMesh(String primName, PrimitiveBaseShape primShape, PhysicsVector size)
{
// Builds an icosahedral geodesic sphere
@@ -1394,6 +1400,13 @@ namespace OpenSim.Region.Physics.Meshing
}
+ ///
+ /// Creates a mesh for prim types torus, ring, tube, and sphere
+ ///
+ ///
+ ///
+ ///
+ ///
private static Mesh CreateCircularPathMesh(String primName, PrimitiveBaseShape primShape, PhysicsVector size)
{
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
index 81e03ca..edb6375 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
@@ -1547,7 +1547,10 @@ namespace OpenSim.Region.Physics.OdePlugin
if (pbs.ProfileShape == ProfileShape.Circle && pbs.PathCurve == (byte)Extrusion.Straight)
return true;
- if (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1 && (pbs.Scale.X != pbs.Scale.Y || pbs.Scale.Y != pbs.Scale.Z || pbs.Scale.Z != pbs.Scale.X))
+ //if (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1 && (pbs.Scale.X != pbs.Scale.Y || pbs.Scale.Y != pbs.Scale.Z || pbs.Scale.Z != pbs.Scale.X))
+ // return true;
+
+ if (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte) Extrusion.Curve1)
return true;
// test for torus
--
cgit v1.1