Exemple #1
0
        private void GetPointValues(Dimension3D dimension, Vector3 point, out float value, out float tPoint1Value, out float tPoint2Value, out float tPoint3Value)
        {
            Triangle triangle = triangleList[point];

            switch (dimension)
            {
            case Dimension3D.X:
                value        = point.X;
                tPoint1Value = triangle.Point1.X;
                tPoint2Value = triangle.Point2.X;
                tPoint3Value = triangle.Point3.X;
                break;

            case Dimension3D.Y:
                value        = point.Y;
                tPoint1Value = triangle.Point1.Y;
                tPoint2Value = triangle.Point2.Y;
                tPoint3Value = triangle.Point3.Y;
                break;

            case Dimension3D.Z:
                value        = point.Z;
                tPoint1Value = triangle.Point1.Z;
                tPoint2Value = triangle.Point2.Z;
                tPoint3Value = triangle.Point3.Z;
                break;

            default:
                value        = 0;
                tPoint1Value = 0;
                tPoint2Value = 0;
                tPoint3Value = 0;
                break;
            }
        }
Exemple #2
0
        private void GetPointValues(Dimension3D dimension, Vector3 point, out float value, out float tPoint1Value, out float tPoint2Value, out float tPoint3Value)
        {
            Triangle triangle = triangleList[point];

            switch (dimension)
            {
                case Dimension3D.X:
                    value = point.X;
                    tPoint1Value = triangle.Point1.X;
                    tPoint2Value = triangle.Point2.X;
                    tPoint3Value = triangle.Point3.X;
                    break;
                case Dimension3D.Y:
                    value = point.Y;
                    tPoint1Value = triangle.Point1.Y;
                    tPoint2Value = triangle.Point2.Y;
                    tPoint3Value = triangle.Point3.Y;
                    break;
                case Dimension3D.Z:
                    value = point.Z;
                    tPoint1Value = triangle.Point1.Z;
                    tPoint2Value = triangle.Point2.Z;
                    tPoint3Value = triangle.Point3.Z;
                    break;
                default:
                    value = 0;
                    tPoint1Value = 0;
                    tPoint2Value = 0;
                    tPoint3Value = 0;
                    break;
            }
        }
Exemple #3
0
 public KDTreeNode3D(Dimension3D splitDimension)
 {
     this.splitDimension = splitDimension;
 }