コード例 #1
0
        public void SetRange(TriMesh mesh, EnumColorItem item, ref CriteriaRange criteriaRange)
        {
            double[] range = null;
            switch (item)
            {
            case EnumColorItem.DihedralAngle:
                range = TriMeshUtil.ComputeDihedralAngle(mesh);
                break;

            case EnumColorItem.Gaussian:
                range = TriMeshUtil.ComputeGaussianCurvatureIntegrated(mesh);
                break;

            case EnumColorItem.Mean:
                range = TriMeshUtil.ComputeMeanCurvature(mesh);
                break;
            }

            criteriaRange.Max = TriMeshFunction.Instance.ComputeMax(range);
            criteriaRange.Min = TriMeshFunction.Instance.ComputeMin(range);
        }
コード例 #2
0
        public void SetRange(TriMesh  mesh,EnumColorItem item, ref CriteriaRange criteriaRange)
        {
            double[] range=null;
            switch (item)
            {
                case EnumColorItem.DihedralAngle :
                    range = TriMeshUtil.ComputeDihedralAngle(mesh);                     
                    break;

                case EnumColorItem.Gaussian:
                    range = TriMeshUtil.ComputeGaussianCurvatureIntegrated(mesh);
                    break;
                case EnumColorItem.Mean:
                    range = TriMeshUtil.ComputeMeanCurvature(mesh);
                    break;
            }

            criteriaRange.Max =TriMeshFunction.Instance.ComputeMax(range);
            criteriaRange.Min = TriMeshFunction.Instance.ComputeMin(range);

             
        }