Пример #1
0
 /// <summary>
 /// Set Vertex Property for the given property handle and vertex handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="ph">Vertex Property Handle</param>
 /// <param name="vh">Vertex Handle</param>
 /// <param name="p">Property Value</param>
 public void SetProperty <T>(VPropH <T> ph, int vh, T p) where T : new()
 {
     m_vprops.GetProperty(ph)[vh] = p;
 }
Пример #2
0
 /// <summary>
 /// Get Vertex Property for the given property handle and vertex handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="ph">Vertex Property Handle</param>
 /// <param name="vh">Vertex Handle</param>
 /// <returns>Property Value</returns>
 public T GetProperty <T>(VPropH <T> ph, int vh) where T : new()
 {
     return(m_vprops.GetProperty(ph)[vh]);
 }
Пример #3
0
 /// <summary>
 /// Remove Vertex Property for the given property handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="h">Vertex Property Handle</param>
 public void RemoveProperty <T>(VPropH <T> ph)
 {
     m_vprops.RemoveProperty(ph);
 }
Пример #4
0
 public Property <T> GetProperty <T>(VPropH <T> ph) where T : new()
 {
     return(m_vprops.GetProperty(ph));
 }
Пример #5
0
 /// <summary>
 /// Add Vertex Property for the given property handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="h">Vertex Property Handle</param>
 public void AddProperty <T>(VPropH <T> ph) where T : new()
 {
     m_vprops.AddProperty(ph);
     m_vprops.Resize(vertexCount);
 }