starting to refactor path generation out of prim extrusion
parent
c3dd98b016
commit
21e62e87c7
|
@ -1116,7 +1116,7 @@ namespace PrimMesher
|
||||||
if (path == null)
|
if (path == null)
|
||||||
return;
|
return;
|
||||||
String fileName = name + "_" + title + ".raw";
|
String fileName = name + "_" + title + ".raw";
|
||||||
String completePath = Path.Combine(path, fileName);
|
String completePath = System.IO.Path.Combine(path, fileName);
|
||||||
StreamWriter sw = new StreamWriter(completePath);
|
StreamWriter sw = new StreamWriter(completePath);
|
||||||
|
|
||||||
for (int i = 0; i < this.faces.Count; i++)
|
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 class PrimMesh
|
||||||
{
|
{
|
||||||
public string errorMessage = "";
|
public string errorMessage = "";
|
||||||
|
@ -2209,7 +2225,7 @@ namespace PrimMesher
|
||||||
if (path == null)
|
if (path == null)
|
||||||
return;
|
return;
|
||||||
String fileName = name + "_" + title + ".raw";
|
String fileName = name + "_" + title + ".raw";
|
||||||
String completePath = Path.Combine(path, fileName);
|
String completePath = System.IO.Path.Combine(path, fileName);
|
||||||
StreamWriter sw = new StreamWriter(completePath);
|
StreamWriter sw = new StreamWriter(completePath);
|
||||||
|
|
||||||
for (int i = 0; i < this.faces.Count; i++)
|
for (int i = 0; i < this.faces.Count; i++)
|
||||||
|
|
Loading…
Reference in New Issue