private static IGeometry CreateSineStar(Coordinate origin, double size, int nPts)
        {
            var gsf = new SineStarFactory
            {
                Centre = origin, Size = size, NumPoints = nPts, ArmLengthRatio = 2, NumArms = 20
            };
            var poly = gsf.CreateSineStar();

            return(poly);
        }
Exemplo n.º 2
0
        private static IGeometry CreateLine(Coordinate @base, double size, int nPts)
        {
            var gsf = new SineStarFactory();

            gsf.Centre    = @base;
            gsf.Size      = size;
            gsf.NumPoints = nPts;
            var circle = gsf.CreateSineStar();

            //    System.out.println(circle);
            return(circle.Boundary);
        }
Exemplo n.º 3
0
        private static Geometry CreateSineStar(int nPts, double offset)
        {
            var gsf = new SineStarFactory();

            gsf.Centre    = new Coordinate(0, offset);
            gsf.Size      = 100;
            gsf.NumPoints = nPts;

            var g = gsf.CreateSineStar();

            return(g);
        }
Exemplo n.º 4
0
        private static IGeometry CreateSineStar(Coordinate origin, double size, int nPts)
        {
            var gsf = new SineStarFactory();

            gsf.Centre         = origin;
            gsf.Size           = size;
            gsf.NumPoints      = nPts;
            gsf.ArmLengthRatio = 0.1;
            gsf.NumArms        = 50;
            var poly = gsf.CreateSineStar();

            return(poly);
        }
        Geometry CreateSineStar(int nPts, double offset)
        {
            var gsf = new SineStarFactory();

            //gsf.Centre = new Coordinate(0, 0);
            gsf.Size      = SIZE;
            gsf.NumPoints = nPts;
            gsf.Centre    = new Coordinate(0, offset);

            var g2 = gsf.CreateSineStar().Boundary;

            return(g2);
        }
Exemplo n.º 6
0
        public IGeometry CreateSineStar(int nPts)
        {
            var gsf = new SineStarFactory(_geomFact);

            gsf.Centre         = _origin;
            gsf.Size           = _size;
            gsf.NumPoints      = nPts;
            gsf.ArmLengthRatio = 0.1;
            gsf.NumArms        = 20;
            var poly = gsf.CreateSineStar();

            return(poly);
        }