예제 #1
0
        public Hinter2D(Node sketchNode, Document document, SketchHinterOptions options)
        {
            _sketchNode    = sketchNode;
            _document      = document;
            _options       = options;
            _textureMapper = new Dictionary <string, string>();

            MapTextures();
            InitializeFields();
        }
예제 #2
0
        //public override void OnActivate()
        public void SetupHinter(Node sketchNode)
        {
            base.OnActivate();
            PresetPreview();

            //var sketchNode = new SketchCreator(Document).CurrentSketch;

            var options = new SketchHinterOptions
            {
                ParallelAngle = GeomUtils.DegreesToRadians(5.0),
                PointRange    = 3.0
            };

            Hinter2D = new Hinter2D(sketchNode, Document, options);
        }