Beispiel #1
0
        //--------------------------------------------------------------------------------------------------

        void CreateSketch()
        {
            var sketch = new Sketch();
            var body   = Body.Create(sketch);

            body.Position = _Plane.Location;
            body.Rotation = _Plane.Rotation();
            InteractiveContext.Current.Document.AddChild(body);
            InteractiveContext.Current.UndoHandler.Commit();

            InteractiveContext.Current.WorkspaceController.Selection.SelectEntity(body);
            WorkspaceController.StartTool(new SketchEditorTool(sketch));
        }
        //--------------------------------------------------------------------------------------------------

        public static bool IsEqual(this Pln pln1, Pln pln2)
        {
            return(pln1.Location.IsEqual(pln2.Location, Double.Epsilon) &&
                   pln1.Rotation().IsEqual(pln2.Rotation()));
        }