본문으로 건너뛰기

ExportGrid

Overloads

NameDescription
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

NameTypeDescription
pathstring내보내기 파일
boundBoxSingle[]내보내기 영역
keepStructurebool구조 유지 여부
visibleOnlybool보이는 모델만 내보내기

Returns

TypeDescription
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

NameTypeDescription
pathstring내보내기 파일
boundBoxesSingle[][]내보내기 영역
keepStructurebool구조 유지 여부
visibleOnlybool보이는 모델만 내보내기

Returns

TypeDescription
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

NameTypeDescription
pathstring내보내기 파일
minXfloat내보내기 영역 - Min. X
minYfloat내보내기 영역 - Min. Y
minZfloat내보내기 영역 - Min. Z
maxXfloat내보내기 영역 - Max. X
maxYfloat내보내기 영역 - Max. Y
maxZfloat내보내기 영역 - Max. Z
keepStructurebool구조 유지 여부

Returns

TypeDescription
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

NameTypeDescription
pathstring내보내기 파일
minXfloat내보내기 영역 - Min. X
minYfloat내보내기 영역 - Min. Y
minZfloat내보내기 영역 - Min. Z
maxXfloat내보내기 영역 - Max. X
maxYfloat내보내기 영역 - Max. Y
maxZfloat내보내기 영역 - Max. Z
keepStructurebool구조 유지 여부
visibleOnlybool보이는 모델만 내보내기

Returns

TypeDescription
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

NameTypeDescription
pathstring내보내기 파일
boundBoxBoundBox3D내보내기 영역
keepStructurebool구조 유지 여부

Returns

TypeDescription
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

NameTypeDescription
pathstring내보내기 파일
boundBoxBoundBox3D내보내기 영역
keepStructurebool구조 유지 여부
visibleOnlybool보이는 모델만 내보내기

Returns

TypeDescription
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 */
);
}