본문으로 건너뛰기

AddDashLine

Overloads

NameDescription
AddDashLine(List<Vertex3DItemCollection> vertex, int groupId, Color color, float thickness, bool visible, float length)점선 추가
AddDashLine(List<Vertex3DItemCollection> vertex, int groupId, float startOffset, float endOffset, Color color, float thickness, bool visible, float length)점선 추가

AddDashLine(List<Vertex3DItemCollection> vertex, int groupId, Color color, float thickness, bool visible, float length)

public List&lt;int&gt; AddDashLine(List&lt;Vertex3DItemCollection&gt; vertex, int groupId, Color color, float thickness, bool visible, float length)

점선 추가

Parameters

NameTypeDescription
vertexList<Vertex3DItemCollection>Vertex List Collection
groupIdintGroup Id
colorColor라인 색상
thicknessfloat라인 두께
visiblebool보이기/숨기기 상태
lengthfloat점선 길이

Returns

TypeDescription
List<int>등록된 개체 ID

Examples

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

private void Example()
{
int groupId = 1;
float thickness = 3.0f;

vizcore3d.BeginUpdate();

List<int> id = vizcore3d.ShapeDrawing.AddDashLine(
GetVertexList()
, groupId
, System.Drawing.Color.Red
, thickness
, true
, 500.0f
);

vizcore3d.EndUpdate();
}

private List<VIZCore3D.NET.Data.Vertex3DItemCollection> GetVertexList()
{
List<VIZCore3D.NET.Data.Vertex3DItemCollection> vertex =
new List<VIZCore3D.NET.Data.Vertex3DItemCollection>();

VIZCore3D.NET.Data.BoundBox3D boundbox =
vizcore3d.Object3D.GeometryProperty.FromSelectedObject3D(false).GetBoundBox();

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MinZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MinZ));

vertex.Add(item);
}

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MinZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MinZ));

vertex.Add(item);
}

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MinZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MinZ));

vertex.Add(item);
}

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MinZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MinZ));

vertex.Add(item);
}

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MinZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MaxZ));

vertex.Add(item);
}

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MaxZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MaxZ));

vertex.Add(item);
}

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MaxZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MaxZ));

vertex.Add(item);
}

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MaxZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MaxZ));

vertex.Add(item);
}

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MaxZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MinY, boundbox.MaxZ));

vertex.Add(item);
}

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MinZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MinX, boundbox.MaxY, boundbox.MaxZ));

vertex.Add(item);
}

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MinZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MaxY, boundbox.MaxZ));

vertex.Add(item);
}

{
VIZCore3D.NET.Data.Vertex3DItemCollection item =
new VIZCore3D.NET.Data.Vertex3DItemCollection();

item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MaxZ));
item.Add(new VIZCore3D.NET.Data.Vertex3D(boundbox.MaxX, boundbox.MinY, boundbox.MinZ));

vertex.Add(item);
}

return vertex;
}

AddDashLine(List<Vertex3DItemCollection> vertex, int groupId, float startOffset, float endOffset, Color color, float thickness, bool visible, float length)

public List&lt;int&gt; AddDashLine(List&lt;Vertex3DItemCollection&gt; vertex, int groupId, float startOffset, float endOffset, Color color, float thickness, bool visible, float length)

점선 추가

Parameters

NameTypeDescription
vertexList<Vertex3DItemCollection>Vertex List Collection
groupIdintGroup Id
startOffsetfloat시작점 Offset
endOffsetfloat끝점 Offset
colorColor라인 색상
thicknessfloat라인 두께
visiblebool보이기/숨기기 상태
lengthfloat점선 길이

Returns

TypeDescription
List<int>등록된 개체 ID