public partial class Model : View
{
private bool isBuilt = false;
+ private Position modelPivotPoint = new Position();
internal Model(global::System.IntPtr cPtr, bool cMemoryOwn) : this(cPtr, cMemoryOwn, cMemoryOwn)
{
}
}
/// <summary>
+ /// Get The original pivot point of the model
+ /// </summary>
+ /// <remarks>
+ /// This returns (0, 0, 0) before resources are loaded.
+ /// </remarks>
+ // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Position ModelPivotPoint
+ {
+ get
+ {
+ return modelPivotPoint;
+ }
+ }
+
+ /// <summary>
/// Set/Get the ImageBasedLight ScaleFactor.
/// Scale factor controls light source intensity in [0.0f, 1.0f]
/// </summary>
{
this.ModelRoot.Build();
isBuilt = true;
+ this.modelPivotPoint.X = this.PivotPoint.X;
+ this.modelPivotPoint.Y = this.PivotPoint.Y;
+ this.modelPivotPoint.Z = this.PivotPoint.Z;
}
}