mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
starting to refactor path generation out of prim extrusion
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user