コード例 #1
0
        public override bool Execute()
        {
            var position  = Dependency[0].TransformedPoint3D;
            var direction = new gpDir(Dependency[1].TransformedPoint3D.GpPnt.XYZ);

            var line       = new GeomLine(new gpLin(position.GpPnt, direction));
            var helperLine = OccShapeCreatorCode.BuildDottedLine(line);

            Interactive = helperLine;
            return(true);
        }
コード例 #2
0
        public override bool Execute()
        {
            if (Dependency[1].TransformedPoint3D.IsEqual(new Point3D(0, 0, 0)))
            {
                return(false);
            }

            var Line = new AISLine(new GeomCartesianPoint(Dependency[0].TransformedPoint3D.GpPnt),
                                   new GeomCartesianPoint(Dependency[1].TransformedPoint3D.GpPnt));
            var helperLine = OccShapeCreatorCode.BuildDottedLine(Line);

            Interactive = helperLine;
            return(true);
        }