Esempio n. 1
0
        protected override void begin_stroke(Frame3f vStartFrameL, int nHitTID)
        {
            if (activeChange == null)
            {
                activeChange = new VertexChangeBuilder(Target.Mesh);
            }

            base.begin_stroke(vStartFrameL, nHitTID);
        }
Esempio n. 2
0
 public virtual void BakeDisplacements(DMeshSO so, VertexChangeBuilder changeBuilder)
 {
     so.EditAndUpdateMesh((mesh) => {
         foreach (int vid in ModifiedV)
         {
             changeBuilder.SetPosition(vid, Displacements[vid]);
         }
         gParallel.ForEach(ModifiedV, (vid) => {
             MeshNormals.QuickCompute(Mesh, vid);
         });
     }, GeometryEditTypes.VertexDeformation);
 }