AddLineSet
Overloads
| Name | Description |
|---|---|
| AddLineSet(float[] xyz, int[] polylineSizes, float[] rgb) | 좌표 목록을 기본 옵션의 선 무리로 표시합니다. |
| AddLineSet(float[] xyz, int[] polylineSizes, float[] rgb, DataSetOptions options) | 좌표 목록을 옵션을 적용한 선 무리로 표시합니다. |
AddLineSet(float[] xyz, int[] polylineSizes, float[] rgb)
public UInt32 AddLineSet(float[] xyz, int[] polylineSizes, float[] rgb)
좌표 목록을 기본 옵션의 선 무리로 표시합니다.
Parameters
| Name | Type | Description |
|---|---|---|
| xyz | float[] | 점 좌표 (점 1개당 X, Y, Z 3개씩) |
| polylineSizes | int[] | 폴리라인별 점 개수. null 이면 연속한 두 점이 하나의 선분이 됩니다. |
| rgb | float[] | 점 색 (점 1개당 R, G, B 3개씩, 0 ~ 1). null 이면 옵션의 단색이 사용됩니다. |
Returns
| Type | Description |
|---|---|
| uint | 데이터 식별자 (실패 시 0) |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
private void Example()
{
VIZCore3DX.NET.Data.BoundBox3D box = vizcore3dx.Model.BoundBox;
float[] xyz = new float[]
{
box.MinX, box.MinY, box.MaxZ,
box.MaxX, box.MaxY, box.MaxZ
};
uint id = vizcore3dx.View.Effect.AddLineSet(xyz, null, null);
}
AddLineSet(float[] xyz, int[] polylineSizes, float[] rgb, DataSetOptions options)
public UInt32 AddLineSet(float[] xyz, int[] polylineSizes, float[] rgb, DataSetOptions options)
좌표 목록을 옵션을 적용한 선 무리로 표시합니다.
Remarks
polylineSizes 의 합이 전체 점 개수와 다르거나 2 미만인 값이 있으면 0을 반환합니다.
점은 한 번에 200,000개, 폴리라인은 4,096줄까지 표시되며 상한을 넘긴 호출은 0을 반환합니다.
모델이 닫히면 등록된 데이터도 함께 제거됩니다.
Parameters
| Name | Type | Description |
|---|---|---|
| xyz | float[] | 점 좌표 (점 1개당 X, Y, Z 3개씩) |
| polylineSizes | int[] | 폴리라인별 점 개수. null 이면 연속한 두 점이 하나의 선분이 됩니다. |
| rgb | float[] | 점 색 (점 1개당 R, G, B 3개씩, 0 ~ 1). null 이면 옵션의 단색이 사용됩니다. |
| options | DataSetOptions | 표시 옵션 (null 이면 기본값) |
Returns
| Type | Description |
|---|---|
| uint | 데이터 식별자 (실패 시 0) |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
private void Example()
{
VIZCore3DX.NET.Data.BoundBox3D box = vizcore3dx.Model.BoundBox;
float[] xyz = new float[]
{
box.MinX, box.MinY, box.MaxZ,
box.CenterX, box.CenterY, box.MaxZ,
box.MaxX, box.MaxY, box.MaxZ
};
int[] polylineSizes = new int[] { 3 };
VIZCore3DX.NET.Data.DataSetOptions options = new VIZCore3DX.NET.Data.DataSetOptions();
options.LineWidth = 3.0f;
options.Group = "FLOW";
uint id = vizcore3dx.View.Effect.AddLineSet(xyz, polylineSizes, null, options);
}