public static BoneGroupingHelper CreateBoneGroupingHelper()
        {
            BoneGroupingHelper helper = new BoneGroupingHelper();

            helper._selectedHorizontalBoneGroups = new List <BoneGroup>();
            helper._selectedVerticalBoneGroups   = new List <BoneGroup>();
            helper._tmpBoneGroups = new List <BoneGroup>();
            helper.tmpEdges       = new List <EdgeLine>();
            return(helper);
        }
示例#2
0
        //
        internal GlyphDynamicOutline(GlyphIntermediateOutline intermediateOutline)
        {
            //setup default values
            _needRefreshBoneGroup    = true; //first time
            _needAdjustGridFitValues = true; //first time
            this.GridBoxWidth        = 32;   //pixels
            this.GridBoxHeight       = 50;   //pixels
            _groupingHelper          = BoneGroupingHelper.CreateBoneGroupingHelper();
#if DEBUG
            this.GridBoxHeight           = dbugGridHeight; //pixels
            _dbugTempIntermediateOutline = intermediateOutline;
#endif

            //we convert data from GlyphIntermediateOutline to newform (lightweight form).
            //and save it here.
            //1. joints and its bones
            //2. bones and its controlled edge
            _contours = intermediateOutline.GetContours(); //original contours
            //3.
            CollectAllCentroidLines(intermediateOutline.GetCentroidLineHubs());
        }