protected override void begin_stroke(Frame3f vStartFrameL, int nHitTID) { if (activeChange == null) { activeChange = new VertexChangeBuilder(Target.Mesh); } base.begin_stroke(vStartFrameL, nHitTID); }
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); }