/// <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; }
/// <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]); }
/// <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); }
public Property <T> GetProperty <T>(FPropH <T> ph) where T : new() { return(m_fprops.GetProperty(ph)); }
/// <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); }