Exemple #1
0
 public TPVertexData(TPVertexData other)
 {
     Flags              = other.Flags;
     PositionF          = other.PositionF;
     FeedRateModifierF  = other.FeedRateModifierF;
     ExtrusionModifierF = other.ExtrusionModifierF;
 }
        public static void SetConstantPerVertexData <T>(LinearToolpath3 <T> toolpath, TPVertexData data) where T : IToolpathVertex
        {
            int N = toolpath.VertexCount;

            for (int i = 0; i < N; ++i)
            {
                T vtx = toolpath[i];
                vtx.ExtendedData = data;
                toolpath.UpdateVertex(i, vtx);
            }
        }