示例#1
0
        public static Plane GetPlaneAtAreaPoint(Point3d areaPoint, BrepFace bf)
        {
            double u;
            double v;

            bf.ClosestPoint(areaPoint, out u, out v);
            Plane oPlane = new Plane();

            bf.FrameAt(u, v, out oPlane);
            return(oPlane);
        }
示例#2
0
        private List <Plane> GetPlanes(BrepFace bf, List <double[]> uvs)
        {
            var frames = new List <Plane>();

            foreach (var uv in uvs)
            {
                Plane frame = Plane.Unset;
                bf.FrameAt(uv[0], uv[1], out frame);
                frames.Add(frame);
            }
            return(frames);
        }