Beispiel #1
0
        public static ShapeBase CreateHatchEntity(float scaleFactor)
        {
            Point3D boundaryCircleCenterPoint = new Point3D(20 * scaleFactor, -20 * scaleFactor, 0);
            float   boundaryCircleRadius      = 15 * scaleFactor;

            Hatch hatch = new Hatch();

            hatch.AddHatchPatternLine(0, HatchLineBorderGapDirection.Inward, 0.75f * scaleFactor, 30 * (float)Math.PI / 180, 0, 0,
                                      HatchLineStyle.Unidirectional, false, HatchOffsetAlgorithm.DirectOffset,
                                      HatchCornerStyle.Sharp);
            hatch.AddCircle(boundaryCircleCenterPoint.X, boundaryCircleCenterPoint.Y, boundaryCircleCenterPoint.Z, boundaryCircleRadius);
            hatch.Color = Color.DarkTurquoise;

            return(hatch);
        }