Subtract
public int Subtract(int idA, int idB, string name, bool deleteSources)
첫 번째 공간에서 두 번째 공간을 뺀 공간을 생성합니다.
Remarks
연산에 사용한 두 공간은 그대로 남습니다. 결과만 남기려면 deleteSources 에 true 를 넘깁니다.
Parameters
| Name | Type | Description |
|---|---|---|
| idA | int | 기준이 되는 공간 아이디 |
| idB | int | 빼낼 공간 아이디 |
| name | string | 새 공간의 이름. 비어 있으면 자동으로 부여됩니다. |
| deleteSources | bool | 연산에 사용한 두 공간을 삭제할지 여부. 기본값은 삭제하지 않습니다. |
Returns
| Type | Description |
|---|---|
| int | 생성된 공간의 아이디. 실패하면 -1 |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
public void Example()
{
System.Collections.Generic.List<int> ids = vizcore3dx.Zone.GetIDs();
if (ids.Count < 2) return;
int id = vizcore3dx.Zone.Subtract(ids[0], ids[1], "차집합");
System.Diagnostics.Debug.WriteLine($"Zone ID : {id}");
}