Пример #1
0
        /// <summary>
        /// Generates the circile.
        /// </summary>
        /// <param name="plane">The plane.</param>
        /// <param name="radius">The radius.</param>
        /// <param name="segments">The segments.</param>
        /// <returns></returns>
        public static LineGeometry3D GenerateCircile(Plane plane, float radius, int segments)
        {
            var bd = new LineBuilder();

            bd.AddCircle(plane.D + plane.Normal, plane.Normal, radius, segments);
            return(bd.ToLineGeometry3D());
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="plane"></param>
        /// <param name="radius"></param>
        /// <param name="segments"></param>
        /// <returns></returns>
        public static LineGeometry3D GenerateCircle(Vector3 plane, float radius, int segments)
        {
            var bd = new LineBuilder();

            bd.AddCircle(Vector3.Zero, plane, radius, segments);
            return(bd.ToLineGeometry3D());
        }