From 21e62e87c779da839941a1f7e19c519ced7643c8 Mon Sep 17 00:00:00 2001 From: dahlia Date: Mon, 3 Aug 2009 22:59:47 -0700 Subject: starting to refactor path generation out of prim extrusion --- OpenSim/Region/Physics/Meshing/PrimMesher.cs | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Physics/Meshing/PrimMesher.cs b/OpenSim/Region/Physics/Meshing/PrimMesher.cs index 8c6bd2b..0d19c01 100644 --- a/OpenSim/Region/Physics/Meshing/PrimMesher.cs +++ b/OpenSim/Region/Physics/Meshing/PrimMesher.cs @@ -1116,7 +1116,7 @@ namespace PrimMesher if (path == null) return; String fileName = name + "_" + title + ".raw"; - String completePath = Path.Combine(path, fileName); + String completePath = System.IO.Path.Combine(path, fileName); StreamWriter sw = new StreamWriter(completePath); for (int i = 0; i < this.faces.Count; i++) @@ -1132,6 +1132,22 @@ namespace PrimMesher } } + public struct PathNode + { + public float position; + public Quat rotation; + public float xScale; + public float yScale; + + public PathNode(float position, Quat rotation, float xScale, float yScale) + { + this.position = position; + this.rotation = rotation; + this.xScale = xScale; + this.yScale = yScale; + } + } + public class PrimMesh { public string errorMessage = ""; @@ -2209,7 +2225,7 @@ namespace PrimMesher if (path == null) return; String fileName = name + "_" + title + ".raw"; - String completePath = Path.Combine(path, fileName); + String completePath = System.IO.Path.Combine(path, fileName); StreamWriter sw = new StreamWriter(completePath); for (int i = 0; i < this.faces.Count; i++) -- cgit v1.1