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); }
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); }