Beispiel #1
0
        public virtual void orient(Shape shape, Featurefy.FeatureSketch featureSketch)
        {
            ShapeType    type = shape.Type;
            BitmapSymbol defn = new BitmapSymbol();

            foreach (BitmapSymbol template in _templates)
            {
                if (template.SymbolType == type)
                {
                    defn = template;
                    break;
                }
            }

            BitmapSymbol unknown = new BitmapSymbol(shape.SubstrokesL);

            shape.Orientation = unknown.bestOrientation(defn);
        }
Beispiel #2
0
        public virtual void orient(Shape shape, Featurefy.FeatureSketch featureSketch)
        {
            ShapeType    type = shape.Type;
            BitmapSymbol defn = new BitmapSymbol();

            // TODO: should we use multiple templates, or just one?
            foreach (BitmapSymbol template in _templates)
            {
                if (template.SymbolType == type)
                {
                    defn = template;
                    break;
                }
            }

            BitmapSymbol unknown = _shapesToSymbols[shape];

            shape.Orientation = unknown.bestOrientation(defn);

#if JESSI
            Console.WriteLine("The final shape orientation is " + shape.Orientation);
            Console.WriteLine();
#endif
        }