* Add a copy constructor to IRendering.SimpleMesh

[Simian]
* Avoid remeshing whenever possible by reverting back to using the untransformed mesh for the world mesh generation
* Add forceMeshing and forceTransform booleans to SimulationObject to specify when a new untransformed mesh needs to be generated and when the transformation needs to be reapplied

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2477 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-03-09 18:20:19 +00:00
parent 7e0529d58d
commit 692d2927a9
9 changed files with 63 additions and 40 deletions

View File

@@ -203,6 +203,26 @@ namespace OpenMetaverse.Rendering
{
public List<Vertex> Vertices;
public List<ushort> Indices;
public SimpleMesh()
{
}
public SimpleMesh(SimpleMesh mesh)
{
this.Indices = new List<ushort>(mesh.Indices);
this.Path.Open = mesh.Path.Open;
this.Path.Points = new List<PathPoint>(mesh.Path.Points);
this.Prim = mesh.Prim;
this.Profile.Concave = mesh.Profile.Concave;
this.Profile.Faces = new List<ProfileFace>(mesh.Profile.Faces);
this.Profile.MaxX = mesh.Profile.MaxX;
this.Profile.MinX = mesh.Profile.MinX;
this.Profile.Open = mesh.Profile.Open;
this.Profile.Positions = new List<Vector3>(mesh.Profile.Positions);
this.Profile.TotalOutsidePoints = mesh.Profile.TotalOutsidePoints;
this.Vertices = new List<Vertex>(mesh.Vertices);
}
}
#endregion Mesh Classes