UnityMesh 画圆弧
namespace zclMesh
{
public class CircleMesh : PrimitiveMeshBase
{
public int segment = 10;
public float m_lineWidth=1;
public float _Radius=1;
public float _angleBegin=0;
public float _angleEnd=360;
public float AngleBegin
{
get {
return _angleBegin; }
set {
_angleBegin = value;
SetMesh();
}
}
public float AngleEnd
{
get {
return _angleEnd; }
set {
_angleEnd = value;
SetMesh();
}
}
protected override void SetTriangel()
{
segment = segment > 0 ? segment : 1;