본문으로 건너뛰기

Add

Overloads

NameDescription
Add(Vertex3D min, Vertex3D max, Color face, Color line, string title)선택상자 추가
Add(BoundBox3D boundBox, Color face, Color line, string title)선택상자 추가

Add(Vertex3D min, Vertex3D max, Color face, Color line, string title)

public int Add(Vertex3D min, Vertex3D max, Color face, Color line, string title)

선택상자 추가

Parameters

NameTypeDescription
minVertex3DMin. Point
maxVertex3DMax. Point
faceColorFace Color
lineColorLine Color
titlestringTitle

Returns

TypeDescription
int선택상자 아이디(ID)

Examples

private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void AddSelectionBox()
{
string title = "Box #1";

int id = vizcore3d.SelectionBox.Add(
new VIZCore3D.NET.Data.Vertex3D(0, 0, 0)
, new VIZCore3D.NET.Data.Vertex3D(100, 100, 100)
, Color.White
, Color.Black
, title
);

List<int> objects =
vizcore3d.SelectionBox.GetObject3DIndex(
id
, VIZCore3D.NET.Data.BoundBoxSearchOption.IncludingPart
);
}

Add(BoundBox3D boundBox, Color face, Color line, string title)

public int Add(BoundBox3D boundBox, Color face, Color line, string title)

선택상자 추가

Parameters

NameTypeDescription
boundBoxBoundBox3D바운드 박스
faceColorFace Color
lineColorLine Color
titlestringTitle

Returns

TypeDescription
int선택상자 아이디(ID)

Examples

private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void AddSelectionBox()
{
VIZCore3D.NET.Data.BoundBox3D boundBox = vizcore3d.Model.BoundBox;
string title = "Box #1";

int id = vizcore3d.SelectionBox.Add(
boundBox
, Color.White
, Color.Black
, title
);

vizcore3d.SelectionBox.Select(id);
}