示例#1
0
        public static LW_Path3D Create(LW_Point3D[] points, bool isClosed = false)
        {
            LW_Path3D instance = CreateInstance <LW_Path3D>();

            instance.Set(points, isClosed);
            return(instance);
        }
示例#2
0
        public override LW_Path3D ConvertToPath3D()
        {
            LW_Path3D path = CreateInstance <LW_Path3D>();

            if (m_Points != null && m_Points.Count > 1)
            {
                LW_Point3D[] pathPoints = new LW_Point3D[m_Points.Count];
                for (int i = 0; i < m_Points.Count; i++)
                {
                    pathPoints[i] = m_Points[i];
                }
                path.Set(pathPoints, m_IsClosed);
            }
            return(path);
        }