Exemplo n.º 1
0
 public override void GCode_GenerateCode(ref string strDefinitionSegment, ref string strSegment, int nLayer, CodeGenerateSystem.Base.LinkPinControl element, CodeGenerateSystem.Base.GenerateCodeContext_Method context)
 {
     if (UVLink_2D.HasLink)
     {
         UVLink_2D.GetLinkedObject(0, true).GCode_GenerateCode(ref strDefinitionSegment, ref strSegment, nLayer, element, context);
     }
 }
Exemplo n.º 2
0
        public override string GCode_GetValueName(CodeGenerateSystem.Base.LinkPinControl element, CodeGenerateSystem.Base.GenerateCodeContext_Method context)
        {
            if (element == TextureLink)
            {
                return(GetTextureSampName());
            }
            else if (element == Tex2DLink)
            {
                string uvName = "input.vUV";
                if (UVLink_2D.HasLink)
                {
                    uvName = UVLink_2D.GetLinkedObject(0, true).GCode_GetValueName(UVLink_2D.GetLinkedPinControl(0, true), context);
                }

                return("vise_tex2D(" + GetTextureName() + "," + GetTextureSampName() + "," + uvName + ")");
            }

            return(base.GCode_GetValueName(element, context));
        }