private bool EqualPoint(LW_Point3D other) { return( position == other.position && pointType == other.pointType && handleIn == other.handleIn && hasHandleIn == other.hasHandleIn && handleOut == other.handleOut && hasHandleOut == other.hasHandleOut ); }
public void Set(Vector3[] points, bool isClosed = false) { LW_Point3D[] pathPoints = null; if (points != null && points.Length > 1) { pathPoints = new LW_Point3D[points.Length]; for (int i = 0; i < points.Length; i++) { pathPoints[i] = new LW_Point3D(points[i]); } } Set(pathPoints, isClosed); }
public void Set(LW_Point3D[] points, bool isClosed = false) { m_IsClosed = isClosed; if (points == null) { points = new LW_Point3D[] { new LW_Point3D(new Vector3(-40, 40, -40), new Vector3(-40 * c_ArcAprox, 0, 0), new Vector3(40 * c_ArcAprox, 0, 0), PointType.Symetric), new LW_Point3D(new Vector3(0, -40, 40), new Vector3(-40 * c_ArcAprox, 0, 0), new Vector3(40 * c_ArcAprox, 0, 0), PointType.Symetric), new LW_Point3D(new Vector3(40, 40, -40), new Vector3(-40 * c_ArcAprox, 0, 0), new Vector3(40 * c_ArcAprox, 0, 0), PointType.Symetric) }; } m_Points = new List <LW_Point3D>(points); SetElementDirty(); }
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); }