diff --git a/ManagedFbx.Samples/FbxForm.cs b/ManagedFbx.Samples/FbxForm.cs
index dac8f24..c5750e6 100644
--- a/ManagedFbx.Samples/FbxForm.cs
+++ b/ManagedFbx.Samples/FbxForm.cs
@@ -9,6 +9,7 @@ public partial class FbxForm : Form
public FbxForm()
{
InitializeComponent();
+ SetTitle("Untitled");
}
public void Add(SceneNode node, TreeNode parentNode)
@@ -104,6 +105,7 @@ private void LoadFile(object sender, EventArgs e)
m_scene = Scene.Import(scenePath);
uxFbxTree.Nodes.Clear();
Add(m_scene.RootNode, null);
+ SetTitle(scenePath);
}
}
@@ -119,6 +121,11 @@ private void SaveFile(object sender, EventArgs e)
}
}
+ private void SetTitle(string filename)
+ {
+ Text = "FbxForm - " + filename;
+ }
+
private Scene m_scene;
}
diff --git a/ManagedFbx/Polygon.h b/ManagedFbx/Polygon.h
index 30149ef..d280012 100644
--- a/ManagedFbx/Polygon.h
+++ b/ManagedFbx/Polygon.h
@@ -2,9 +2,15 @@
namespace ManagedFbx
{
+ ///
+ /// Represents a polygon.
+ ///
public value struct Polygon
{
public:
+ ///
+ /// Gets the array of indices which make up this polygon.
+ ///
property_ri(array^, Indices);
private:
diff --git a/ManagedFbx/SceneNode.h b/ManagedFbx/SceneNode.h
index cfe1ea3..986ac4c 100644
--- a/ManagedFbx/SceneNode.h
+++ b/ManagedFbx/SceneNode.h
@@ -8,20 +8,55 @@ using namespace System::Collections::Generic;
namespace ManagedFbx
{
+ ///
+ /// Represents a single node in the FBX scene graph.
+ ///
public ref class SceneNode
{
public:
+ ///
+ /// Gets and sets the name of this node.
+ ///
property_rw(string^, Name);
+
+ ///
+ /// Gets the direct children of this node.
+ ///
property_r(IEnumerable^, ChildNodes);
+
+ ///
+ /// Gets a collection of FBX attributes for this node.
+ ///
property_r(IEnumerable^, Attributes);
-
+
+ ///
+ /// Gets and sets the position of this node.
+ ///
property_rw(Vector3, Position);
+
+ ///
+ /// Gets and sets the rotation of this node.
+ ///
property_rw(Vector3, Rotation);
+
+ ///
+ /// Gets and sets the scale of this node.
+ ///
property_rw(Vector3, Scale);
+ ///
+ /// Gets the first mesh attribute of this node if it exists, otherwise null.
+ ///
property_r(ManagedFbx::Mesh^, Mesh);
+
+ ///
+ /// Gets the first light attribute of this node if it exists, otherwise null.
+ ///
property_r(ManagedFbx::Light^, Light);
+ ///
+ /// Adds an existing node as a child of this node.
+ ///
void AddChild(SceneNode ^node);
internal: