ExportGrid
Overloads
| Name | Description |
|---|---|
| ExportGrid(string path, float[] boundBox, bool keepStructure, bool visibleOnly) | 3D Grid(Bounding Box) 내보내기 |
| ExportGrid(string path, float[][] boundBoxes, bool keepStructure, bool visibleOnly) | 3D Grid(Bounding Box) 내보내기 |
| ExportGrid(string path, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool keepStructure) | 3D Grid(Bounding Box) 내보내기 |
| ExportGrid(string path, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool keepStructure, bool visibleOnly) | 3D Grid(Bounding Box) 내보내기 |
| ExportGrid(string path, BoundBox3D boundBox, bool keepStructure) | 3D Grid(Bounding Box) 내보내기 |
| ExportGrid(string path, BoundBox3D boundBox, bool keepStructure, bool visibleOnly) | 3D Grid(Bounding Box) 내보내기 |
ExportGrid(string path, float[] boundBox, bool keepStructure, bool visibleOnly)
public bool ExportGrid(string path, float[] boundBox, bool keepStructure, bool visibleOnly)
3D Grid(Bounding Box) 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | 내보내기 파일 |
| boundBox | Single[] | 내보내기 영역 |
| keepStructure | bool | 구조 유지 여부 |
| visibleOnly | bool | 보이는 모델만 내보내기 |
Returns
| Type | Description |
|---|---|
| bool | 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
float[] boundBox = new float[]
{
0.0f
, 0.0f
, 0.0f
, 100.0f
, 100.0f
, 100.0f
};
vizcore3d.Model.ExportGrid(
"C:\\Temp\\Model.viz" /* Path */
, boundBox /* BoundBox */
, false /* Keep Structure */
, true /* Visible Only */
);
}
ExportGrid(string path, float[][] boundBoxes, bool keepStructure, bool visibleOnly)
public bool ExportGrid(string path, float[][] boundBoxes, bool keepStructure, bool visibleOnly)
3D Grid(Bounding Box) 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | 내보내기 파일 |
| boundBoxes | Single[][] | 내보내기 영역 |
| keepStructure | bool | 구조 유지 여부 |
| visibleOnly | bool | 보이는 모델만 내보내기 |
Returns
| Type | Description |
|---|---|
| bool | 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
List<int> index = new List<int>();
index.Add(0);
Data.BoundBox3D rootBox = VIZCtrl.Object3D.GetBoundBox(index, false);
BoundBox3D[] boundBoxes = rootBox.Subtract(boundBox);
//boundBoxes 리스트를 float[][]로 변환
float[][] boundBoxArray = boundBoxes.Select(box =>new float[] { box.MinX, box.MinY, box.MinZ,box.MaxX, box.MaxY, box.MaxZ }).ToArray();
vizcore3d.Model.ExportGrid(
"C:\\Temp\\Model.viz" /* Path */
, boundBox /* BoundBox */
, false /* Keep Structure */
, true /* Visible Only */
);
}
ExportGrid(string path, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool keepStructure)
public bool ExportGrid(string path, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool keepStructure)
3D Grid(Bounding Box) 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | 내보내기 파일 |
| minX | float | 내보내기 영역 - Min. X |
| minY | float | 내보내기 영역 - Min. Y |
| minZ | float | 내보내기 영역 - Min. Z |
| maxX | float | 내보내기 영역 - Max. X |
| maxY | float | 내보내기 영역 - Max. Y |
| maxZ | float | 내보내기 영역 - Max. Z |
| keepStructure | bool | 구조 유지 여부 |
Returns
| Type | Description |
|---|---|
| bool | 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
vizcore3d.Model.ExportGrid(
"C:\\Temp\\Model.viz" /* Path */
, 0.0f /* BoundBox - Min.X */
, 0.0f /* BoundBox - Min.Y */
, 0.0f /* BoundBox - Min.Z */
, 100.0f /* BoundBox - Max.X */
, 100.0f /* BoundBox - Max.Y */
, 100.0f /* BoundBox - Max.Z */
, false /* Keep Structure */
);
}
ExportGrid(string path, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool keepStructure, bool visibleOnly)
public bool ExportGrid(string path, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool keepStructure, bool visibleOnly)
3D Grid(Bounding Box) 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | 내보내기 파일 |
| minX | float | 내보내기 영역 - Min. X |
| minY | float | 내보내기 영역 - Min. Y |
| minZ | float | 내보내기 영역 - Min. Z |
| maxX | float | 내보내기 영역 - Max. X |
| maxY | float | 내보내기 영역 - Max. Y |
| maxZ | float | 내보내기 영역 - Max. Z |
| keepStructure | bool | 구조 유지 여부 |
| visibleOnly | bool | 보이는 모델만 내보내기 |
Returns
| Type | Description |
|---|---|
| bool | 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
vizcore3d.Model.ExportGrid(
"C:\\Temp\\Model.viz" /* Path */
, 0.0f /* BoundBox - Min.X */
, 0.0f /* BoundBox - Min.Y */
, 0.0f /* BoundBox - Min.Z */
, 100.0f /* BoundBox - Max.X */
, 100.0f /* BoundBox - Max.Y */
, 100.0f /* BoundBox - Max.Z */
, false /* Keep Structure */
, true /* Visible Only */
);
}
ExportGrid(string path, BoundBox3D boundBox, bool keepStructure)
public bool ExportGrid(string path, BoundBox3D boundBox, bool keepStructure)
3D Grid(Bounding Box) 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | 내보내기 파일 |
| boundBox | BoundBox3D | 내보내기 영역 |
| keepStructure | bool | 구조 유지 여부 |
Returns
| Type | Description |
|---|---|
| bool | 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
VIZCore3D.NET.Data.BoundBox3D boundBox =
new VIZCore3D.NET.Data.BoundBox3D();
boundBox.MinX = 0.0f;
boundBox.MinY = 0.0f;
boundBox.MinZ = 0.0f;
boundBox.MaxX = 100.0f;
boundBox.MaxY = 100.0f;
boundBox.MaxZ = 100.0f;
vizcore3d.Model.ExportGrid(
"C:\\Temp\\Model.viz" /* Path */
, boundBox /* BoundBox */
, false /* Keep Structure */
);
}
ExportGrid(string path, BoundBox3D boundBox, bool keepStructure, bool visibleOnly)
public bool ExportGrid(string path, BoundBox3D boundBox, bool keepStructure, bool visibleOnly)
3D Grid(Bounding Box) 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | 내보내기 파일 |
| boundBox | BoundBox3D | 내보내기 영역 |
| keepStructure | bool | 구조 유지 여부 |
| visibleOnly | bool | 보이는 모델만 내보내기 |
Returns
| Type | Description |
|---|---|
| bool | 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
VIZCore3D.NET.Data.BoundBox3D boundBox =
new VIZCore3D.NET.Data.BoundBox3D();
boundBox.MinX = 0.0f;
boundBox.MinY = 0.0f;
boundBox.MinZ = 0.0f;
boundBox.MaxX = 100.0f;
boundBox.MaxY = 100.0f;
boundBox.MaxZ = 100.0f;
vizcore3d.Model.ExportGrid(
"C:\\Temp\\Model.viz" /* Path */
, boundBox /* BoundBox */
, false /* Keep Structure */
, true /* Visible Only */
);
}