You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace GeoSigma.SigmaDrawerStyle
|
|
|
|
|
|
{
|
|
|
|
|
|
public class SurfaceSmoothProperty
|
|
|
|
|
|
{
|
|
|
|
|
|
private double coefficient = 1; //平滑系 数
|
|
|
|
|
|
private int smoothNumber = 10; //平滑次数;
|
|
|
|
|
|
|
|
|
|
|
|
[Category("\t"), DisplayName("\t\t\t\t\t\t平滑系数")]
|
|
|
|
|
|
public double Coefficient
|
|
|
|
|
|
{
|
|
|
|
|
|
get => coefficient;
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (value < 0.000001)
|
|
|
|
|
|
{
|
|
|
|
|
|
MessageBox.Show("输入非法。请输入大于0的值。", "提示");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
coefficient = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
[Category("\t"), DisplayName("\t\t\t\t\t\t平滑次数")]
|
|
|
|
|
|
public int SmoothNumber
|
|
|
|
|
|
{
|
|
|
|
|
|
get => smoothNumber;
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
if (value <= 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
MessageBox.Show("输入非法。请输入大于0的值。", "提示");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
smoothNumber = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|