示例#1
0
 public void GetLatticeData(ref FFDAPI.ffdLatticeData v)
 {
     v.points    = m_pinnedPoints;
     v.div_s     = m_s;
     v.div_t     = m_t;
     v.div_u     = m_u;
     v.transform = GetComponent <Transform>().localToWorldMatrix;
 }
示例#2
0
        bool SetupLatticeWeights()
        {
            FFDAPI.SafeDispose(ref m_weights);
            m_weights = new PinnedList <FFDAPI.ffdWeights8>(m_pointsBase.Count);

            FFDAPI.ffdLatticeData        lattice = default(FFDAPI.ffdLatticeData);
            FFDAPI.ffdLatticeWeightsData weights = default(FFDAPI.ffdLatticeWeightsData);
            m_lattice.GetLatticeData(ref lattice);
            weights.weights      = m_weights;
            weights.num_vertices = m_weights.Count;
            FFDAPI.ffdLatticeSetup(ref lattice, ref weights, m_points);
            return(true);
        }