Пример #1
0
        public static ContourVertex ContourVertex(this Vector3 v)
        {
            var r = new ContourVertex();

            r.Position = v.Vec3();
            return(r);
        }
Пример #2
0
        public static ContourVertex[] ToContourVertex(Vector3[] v, bool zeroZ = false)
        {
            var res = new ContourVertex[v.Length];

            for (int i = 0; i < v.Length; i++)
            {
                res[i].Position.X = v[i].x;
                res[i].Position.Y = v[i].y;
                res[i].Position.Z = (zeroZ) ? 0 : v[i].z;
            }
            return(res);
        }