fix some compile
parent
5b3e2ab9aa
commit
971b613d08
|
@ -30,8 +30,8 @@ using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using OpenSim.Region.Physics.Manager;
|
using OpenSim.Region.PhysicsModules.SharedBase;
|
||||||
using OpenSim.Region.Physics.Meshing;
|
using OpenSim.Region.PhysicsModules.UbitMeshing;
|
||||||
|
|
||||||
public class Vertex : IComparable<Vertex>
|
public class Vertex : IComparable<Vertex>
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,13 +29,13 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using OpenSim.Region.Physics.Manager;
|
using OpenSim.Region.PhysicsModules.SharedBase;
|
||||||
using PrimMesher;
|
using PrimMesher;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
using System.Runtime.Serialization.Formatters.Binary;
|
using System.Runtime.Serialization.Formatters.Binary;
|
||||||
|
|
||||||
namespace OpenSim.Region.Physics.Meshing
|
namespace OpenSim.Region.PhysicsModules.UbitMeshing
|
||||||
{
|
{
|
||||||
public class MeshBuildingData
|
public class MeshBuildingData
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,7 +29,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenSim.Framework;
|
using OpenSim.Framework;
|
||||||
using OpenSim.Region.Physics.Manager;
|
using OpenSim.Region.Framework.Scenes;
|
||||||
|
using OpenSim.Region.Framework.Interfaces;
|
||||||
|
using OpenSim.Region.PhysicsModules.SharedBase;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using OpenMetaverse.StructuredData;
|
using OpenMetaverse.StructuredData;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
@ -41,36 +43,23 @@ using Nini.Config;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using ComponentAce.Compression.Libs.zlib;
|
using ComponentAce.Compression.Libs.zlib;
|
||||||
using OpenSim.Region.Physics.ConvexDecompositionDotNet;
|
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
using System.Runtime.Serialization.Formatters.Binary;
|
using System.Runtime.Serialization.Formatters.Binary;
|
||||||
|
|
||||||
namespace OpenSim.Region.Physics.Meshing
|
using Mono.Addins;
|
||||||
{
|
|
||||||
public class MeshmerizerPlugin : IMeshingPlugin
|
|
||||||
{
|
|
||||||
public MeshmerizerPlugin()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public string GetName()
|
namespace OpenSim.Region.PhysicsModules.UbitMeshing
|
||||||
{
|
{
|
||||||
return "UbitMeshmerizer";
|
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "UbitMeshmerizer")]
|
||||||
}
|
public class UbitMeshmerizer : IMesher, INonSharedRegionModule
|
||||||
|
|
||||||
public IMesher GetMesher(IConfigSource config)
|
|
||||||
{
|
|
||||||
return new Meshmerizer(config);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Meshmerizer : IMesher
|
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
||||||
// Setting baseDir to a path will enable the dumping of raw files
|
// Setting baseDir to a path will enable the dumping of raw files
|
||||||
// raw files can be imported by blender so a visual inspection of the results can be done
|
// raw files can be imported by blender so a visual inspection of the results can be done
|
||||||
|
|
||||||
|
private bool m_Enabled = false;
|
||||||
|
|
||||||
public object diskLock = new object();
|
public object diskLock = new object();
|
||||||
|
|
||||||
public bool doMeshFileCache = true;
|
public bool doMeshFileCache = true;
|
||||||
|
@ -89,7 +78,18 @@ namespace OpenSim.Region.Physics.Meshing
|
||||||
private Dictionary<AMeshKey, Mesh> m_uniqueMeshes = new Dictionary<AMeshKey, Mesh>();
|
private Dictionary<AMeshKey, Mesh> m_uniqueMeshes = new Dictionary<AMeshKey, Mesh>();
|
||||||
private Dictionary<AMeshKey, Mesh> m_uniqueReleasedMeshes = new Dictionary<AMeshKey, Mesh>();
|
private Dictionary<AMeshKey, Mesh> m_uniqueReleasedMeshes = new Dictionary<AMeshKey, Mesh>();
|
||||||
|
|
||||||
public Meshmerizer(IConfigSource config)
|
#region INonSharedRegionModule
|
||||||
|
public string Name
|
||||||
|
{
|
||||||
|
get { return "UbitMeshmerizer"; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public Type ReplaceableInterface
|
||||||
|
{
|
||||||
|
get { return null; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Initialise(IConfigSource config)
|
||||||
{
|
{
|
||||||
IConfig start_config = config.Configs["Startup"];
|
IConfig start_config = config.Configs["Startup"];
|
||||||
IConfig mesh_config = config.Configs["Mesh"];
|
IConfig mesh_config = config.Configs["Mesh"];
|
||||||
|
@ -118,6 +118,33 @@ namespace OpenSim.Region.Physics.Meshing
|
||||||
CacheExpire = TimeSpan.FromHours(fcache);
|
CacheExpire = TimeSpan.FromHours(fcache);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public void Close()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void AddRegion(Scene scene)
|
||||||
|
{
|
||||||
|
if (!m_Enabled)
|
||||||
|
return;
|
||||||
|
|
||||||
|
scene.RegisterModuleInterface<IMesher>(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RemoveRegion(Scene scene)
|
||||||
|
{
|
||||||
|
if (!m_Enabled)
|
||||||
|
return;
|
||||||
|
|
||||||
|
scene.UnregisterModuleInterface<IMesher>(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RegionLoaded(Scene scene)
|
||||||
|
{
|
||||||
|
if (!m_Enabled)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// creates a simple box mesh of the specified size. This mesh is of very low vertex count and may
|
/// creates a simple box mesh of the specified size. This mesh is of very low vertex count and may
|
||||||
|
|
|
@ -414,9 +414,11 @@
|
||||||
<Reference name="OpenSim.Framework"/>
|
<Reference name="OpenSim.Framework"/>
|
||||||
<Reference name="OpenSim.Framework.Console"/>
|
<Reference name="OpenSim.Framework.Console"/>
|
||||||
<Reference name="OpenSim.Region.PhysicsModules.SharedBase"/>
|
<Reference name="OpenSim.Region.PhysicsModules.SharedBase"/>
|
||||||
|
<Reference name="OpenSim.Region.Framework"/>
|
||||||
<Reference name="OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet"/>
|
<Reference name="OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet"/>
|
||||||
<Reference name="log4net" path="../../../../bin/"/>
|
|
||||||
<Reference name="zlib.net" path="../../../../bin/"/>
|
<Reference name="zlib.net" path="../../../../bin/"/>
|
||||||
|
<Reference name="Mono.Addins" path="../../../../bin/"/>
|
||||||
|
<Reference name="log4net" path="../../../../bin/"/>
|
||||||
|
|
||||||
<Files>
|
<Files>
|
||||||
<Match pattern="*.cs" recurse="true"/>
|
<Match pattern="*.cs" recurse="true"/>
|
||||||
|
@ -1589,7 +1591,7 @@
|
||||||
</Files>
|
</Files>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
||||||
<Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet" path="OpenSim/Region/PhysicsModules/ConvexDecompositionDotNet" type="Library">
|
<Project frameworkVersion="v4_0" name="OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet" path="OpenSim/Region/PhysicsModules/ConvexDecompositionDotNet" type="Library">
|
||||||
<Configuration name="Debug">
|
<Configuration name="Debug">
|
||||||
<Options>
|
<Options>
|
||||||
<OutputPath>../../../../bin/</OutputPath>
|
<OutputPath>../../../../bin/</OutputPath>
|
||||||
|
@ -1755,7 +1757,7 @@
|
||||||
<Reference name="OpenSim.Framework.Console"/>
|
<Reference name="OpenSim.Framework.Console"/>
|
||||||
<Reference name="OpenSim.Region.PhysicsModules.SharedBase"/>
|
<Reference name="OpenSim.Region.PhysicsModules.SharedBase"/>
|
||||||
<Reference name="OpenSim.Region.PhysicsModules.Meshing" path="../../../../bin/"/>
|
<Reference name="OpenSim.Region.PhysicsModules.Meshing" path="../../../../bin/"/>
|
||||||
<Reference name="OpenSim.Region.PhysicsModule.ConvexDecompositionDotNet"/>
|
<Reference name="OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet"/>
|
||||||
<Reference name="Mono.Addins" path="../../../../bin/"/>
|
<Reference name="Mono.Addins" path="../../../../bin/"/>
|
||||||
<Reference name="BulletXNA.dll" path="../../../../bin/"/>
|
<Reference name="BulletXNA.dll" path="../../../../bin/"/>
|
||||||
<Reference name="log4net.dll" path="../../../../bin/"/>
|
<Reference name="log4net.dll" path="../../../../bin/"/>
|
||||||
|
|
Loading…
Reference in New Issue