Ejemplo n.º 1
0
 /// <summary>
 /// Set Face Property for the given property handle and face handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="ph">Face Property Handle</param>
 /// <param name="fh">Face Handle</param>
 /// <param name="p">Property Value</param>
 public void SetProperty <T>(FPropH <T> ph, int fh, T p) where T : new()
 {
     m_fprops.GetProperty(ph)[fh] = p;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Get Face Property for the given property handle and face handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="ph">Face Property Handle</param>
 /// <param name="fh">Face Handle</param>
 /// <returns>Property Value</returns>
 public T GetProperty <T>(FPropH <T> ph, int fh) where T : new()
 {
     return(m_fprops.GetProperty(ph)[fh]);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Remove Face Property for the given property handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="h">Face Property Handle</param>
 public void RemoveProperty <T>(FPropH <T> ph)
 {
     m_fprops.RemoveProperty(ph);
 }
Ejemplo n.º 4
0
 public Property <T> GetProperty <T>(FPropH <T> ph) where T : new()
 {
     return(m_fprops.GetProperty(ph));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Add Face Property for the given property handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="h">Face Property Handle</param>
 public void AddProperty <T>(FPropH <T> ph) where T : new()
 {
     m_fprops.AddProperty(ph);
     m_fprops.Resize(faceCount);
 }