From 0260b33517aa85aaaf033e67f345a7d07c82057b Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Sat, 28 Jun 2008 18:04:04 +0000 Subject: Altered prim description/debugging message code to be more warning friendly --- OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 66 +++++++++++++-------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'OpenSim/Region/Physics') diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index 3666735..161f4e1 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs @@ -2038,38 +2038,38 @@ namespace OpenSim.Region.Physics.Meshing return mesh; } -// Commented to kill a warning -// private static void reportPrimParams(string name, PrimitiveBaseShape primShape) -// { -// ; -//#if SPAM -// float pathShearX = primShape.PathShearX < 128 ? (float)primShape.PathShearX * 0.01f : (float)(primShape.PathShearX - 256) * 0.01f; -// float pathShearY = primShape.PathShearY < 128 ? (float)primShape.PathShearY * 0.01f : (float)(primShape.PathShearY - 256) * 0.01f; -// -// Console.WriteLine("********************* PrimitiveBaseShape Parameters *******************\n" -// + "Name.............: " + name.ToString() + "\n" -// + "HollowShape......: " + primShape.HollowShape.ToString() + "\n" -// + "PathBegin........: " + primShape.PathBegin.ToString() + "\n" -// + "PathCurve........: " + primShape.PathCurve.ToString() + "\n" -// + "PathEnd..........: " + primShape.PathEnd.ToString() + "\n" -// + "PathRadiusOffset.: " + primShape.PathRadiusOffset.ToString() + "\n" -// + "PathRevolutions..: " + primShape.PathRevolutions.ToString() + "\n" -// + "PathScaleX.......: " + primShape.PathScaleX.ToString() + "\n" -// + "PathScaleY.......: " + primShape.PathScaleY.ToString() + "\n" -// + "PathShearX.......: " + primShape.PathShearX.ToString() + " (" + pathShearX.ToString() + ")\n" -// + "PathShearY.......: " + primShape.PathShearY.ToString() + " (" + pathShearY.ToString() + ")\n" -// + "PathSkew.........: " + primShape.PathSkew.ToString() + "\n" -// + "PathTaperX.......: " + primShape.PathTaperX.ToString() + "\n" -// + "PathTaperY.......: " + primShape.PathTaperY.ToString() + "\n" -// + "PathTwist........: " + primShape.PathTwist.ToString() + "\n" -// + "PathTwistBegin...: " + primShape.PathTwistBegin.ToString() + "\n" -// + "ProfileBegin.....: " + primShape.ProfileBegin.ToString() + "\n" -// + "ProfileCurve.....: " + primShape.ProfileCurve.ToString() + "\n" -// + "ProfileEnd.......: " + primShape.ProfileEnd.ToString() + "\n" -// + "ProfileHollow....: " + primShape.ProfileHollow.ToString() + "\n" -// + "ProfileShape.....: " + primShape.ProfileShape.ToString() + "\n" -// ); -//#endif -// } +#if SPAM + // please dont comment this out until I'm done with this module - dahlia + private static void reportPrimParams(string name, PrimitiveBaseShape primShape) + { + + float pathShearX = primShape.PathShearX < 128 ? (float)primShape.PathShearX * 0.01f : (float)(primShape.PathShearX - 256) * 0.01f; + float pathShearY = primShape.PathShearY < 128 ? (float)primShape.PathShearY * 0.01f : (float)(primShape.PathShearY - 256) * 0.01f; + + Console.WriteLine("********************* PrimitiveBaseShape Parameters *******************\n" + + "Name.............: " + name.ToString() + "\n" + + "HollowShape......: " + primShape.HollowShape.ToString() + "\n" + + "PathBegin........: " + primShape.PathBegin.ToString() + "\n" + + "PathCurve........: " + primShape.PathCurve.ToString() + "\n" + + "PathEnd..........: " + primShape.PathEnd.ToString() + "\n" + + "PathRadiusOffset.: " + primShape.PathRadiusOffset.ToString() + "\n" + + "PathRevolutions..: " + primShape.PathRevolutions.ToString() + "\n" + + "PathScaleX.......: " + primShape.PathScaleX.ToString() + "\n" + + "PathScaleY.......: " + primShape.PathScaleY.ToString() + "\n" + + "PathShearX.......: " + primShape.PathShearX.ToString() + " (" + pathShearX.ToString() + ")\n" + + "PathShearY.......: " + primShape.PathShearY.ToString() + " (" + pathShearY.ToString() + ")\n" + + "PathSkew.........: " + primShape.PathSkew.ToString() + "\n" + + "PathTaperX.......: " + primShape.PathTaperX.ToString() + "\n" + + "PathTaperY.......: " + primShape.PathTaperY.ToString() + "\n" + + "PathTwist........: " + primShape.PathTwist.ToString() + "\n" + + "PathTwistBegin...: " + primShape.PathTwistBegin.ToString() + "\n" + + "ProfileBegin.....: " + primShape.ProfileBegin.ToString() + "\n" + + "ProfileCurve.....: " + primShape.ProfileCurve.ToString() + "\n" + + "ProfileEnd.......: " + primShape.ProfileEnd.ToString() + "\n" + + "ProfileHollow....: " + primShape.ProfileHollow.ToString() + "\n" + + "ProfileShape.....: " + primShape.ProfileShape.ToString() + "\n" + ); + } +#endif } } -- cgit v1.1