본문으로 건너뛰기

AddPolyLine

Overloads

NameDescription
AddPolyLine(List<Vertex3D> positions, Color color, float width, bool dash)Add Poly Line

AddPolyLine(List<Vertex3D> positions, Color color, float width, bool dash)

public int AddPolyLine(List&lt;Vertex3D&gt; positions, Color color, float width, bool dash)

Add Poly Line

Parameters

NameTypeDescription
positionsList<Vertex3D>위치 목록 (Degree)
colorColor색상
widthfloat라인 두께
dashbool점선

Returns

TypeDescription
int등록된 개체 ID

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example1()
{
List<Data.Vertex3D> position1 = new List<Data.Vertex3D>();
for (int i = 0; i <= 360; i += 10)
{
float fAngleX = i;
float fAngleY = 0;

position1.Add(new Data.Vertex3D(fAngleX, fAngleY, 0.0f));
}
vizcore3d.Panorama.CustomObject.AddPolyLine(position1, Color.Red, 1.0f);
}

private void Example2()
{
List<Data.Vertex3D> position1 = new List<Data.Vertex3D>();
for (int i = -90; i <= 90; i++)
{
float fAngleX = 0;
float fAngleY = i;

position1.Add(new Data.Vertex3D(fAngleX, fAngleY, 0.0f));
}
Color color = Color.FromArgb(255, 255, 128, 0);
vizcore3d.Panorama.CustomObject.AddPolyLine(position1, color, 1.0f);
}