Add
Overloads
| Name | Description |
|---|---|
| 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
| Name | Type | Description |
|---|---|---|
| min | Vertex3D | Min. Point |
| max | Vertex3D | Max. Point |
| face | Color | Face Color |
| line | Color | Line Color |
| title | string | Title |
Returns
| Type | Description |
|---|---|
| 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
| Name | Type | Description |
|---|---|---|
| boundBox | BoundBox3D | 바운드 박스 |
| face | Color | Face Color |
| line | Color | Line Color |
| title | string | Title |
Returns
| Type | Description |
|---|---|
| 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);
}