ExportSimplifiedModel
Overloads
ExportSimplifiedModel(string input, string output, bool keepStructure, SimplifiedUnit unit, bool showFileInExplorer)
public bool ExportSimplifiedModel(string input, string output, bool keepStructure, SimplifiedUnit unit, bool showFileInExplorer)
CAD/VIZ 파일의 단순화(간소화) 모델 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| input | string | CAD/VIZ 파일 |
| output | string | VIZ 파일 |
| keepStructure | bool | Assembly Structure 유지 여부. 권장값 : False |
| unit | SimplifiedUnit | 간소화 단위 |
| showFileInExplorer | bool | 변환 후, 탐색기로 조회 |
Returns
| Type | Description |
|---|---|
| bool | 변환 결과 |
ExportSimplifiedModel(string input, string output, bool keepStructure, bool limitBoundBox, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool limitMesh, int meshCount, SimplifiedUnit unit, bool showFileInExplorer)
public bool ExportSimplifiedModel(string input, string output, bool keepStructure, bool limitBoundBox, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool limitMesh, int meshCount, SimplifiedUnit unit, bool showFileInExplorer)
CAD/VIZ 파일의 단순화(간소화) 모델 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| input | string | CAD/VIZ 파일 |
| output | string | VIZ 파일 |
| keepStructure | bool | Assembly Structure 유지 여부. 권장값 : False |
| limitBoundBox | bool | BoundBox 크기 제한 여부 |
| minX | float | BoundBox Min. X |
| minY | float | BoundBox Min. Y |
| minZ | float | BoundBox Min. Z |
| maxX | float | BoundBox Max. X |
| maxY | float | BoundBox Max. Y |
| maxZ | float | BoundBox Max. Z |
| limitMesh | bool | Triangle Mesh 개수 제한 여부 |
| meshCount | int | Triangle Mesh 제한 개수 |
| unit | SimplifiedUnit | 간소화 단위 |
| showFileInExplorer | bool | 변환 후, 탐색기로 조회 |
Returns
| Type | Description |
|---|---|
| bool | 변환 결과 |
ExportSimplifiedModel(string input, string output, bool keepStructure, bool limitBoundBox, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool limitMesh, int meshCount, SimplifiedUnit unit, bool qualityLow, bool showFileInExplorer)
public bool ExportSimplifiedModel(string input, string output, bool keepStructure, bool limitBoundBox, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool limitMesh, int meshCount, SimplifiedUnit unit, bool qualityLow, bool showFileInExplorer)
CAD/VIZ 파일의 단순화(간소화) 모델 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| input | string | CAD/VIZ 파일 |
| output | string | VIZ 파일 |
| keepStructure | bool | Assembly Structure 유지 여부. 권장값 : False |
| limitBoundBox | bool | BoundBox 크기 제한 여부 |
| minX | float | BoundBox Min. X |
| minY | float | BoundBox Min. Y |
| minZ | float | BoundBox Min. Z |
| maxX | float | BoundBox Max. X |
| maxY | float | BoundBox Max. Y |
| maxZ | float | BoundBox Max. Z |
| limitMesh | bool | Triangle Mesh 개수 제한 여부 |
| meshCount | int | Triangle Mesh 제한 개수 |
| unit | SimplifiedUnit | 간소화 단위 |
| qualityLow | bool | Quality : True(Low), False(Medium) |
| showFileInExplorer | bool | 변환 후, 탐색기로 조회 |
Returns
| Type | Description |
|---|---|
| bool | 변환 결과 |
ExportSimplifiedModel(string input, string output, bool keepStructure, bool limitBoundBox, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool limitMesh, int meshCount, SimplifiedUnit unit, int virtualScreenSize, int virtualScreenCount, bool showFileInExplorer)
public bool ExportSimplifiedModel(string input, string output, bool keepStructure, bool limitBoundBox, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool limitMesh, int meshCount, SimplifiedUnit unit, int virtualScreenSize, int virtualScreenCount, bool showFileInExplorer)
CAD/VIZ 파일의 단순화(간소화) 모델 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| input | string | CAD/VIZ 파일 |
| output | string | VIZ 파일 |
| keepStructure | bool | Assembly Structure 유지 여부. 권장값 : False |
| limitBoundBox | bool | BoundBox 크기 제한 여부 |
| minX | float | BoundBox Min. X |
| minY | float | BoundBox Min. Y |
| minZ | float | BoundBox Min. Z |
| maxX | float | BoundBox Max. X |
| maxY | float | BoundBox Max. Y |
| maxZ | float | BoundBox Max. Z |
| limitMesh | bool | Triangle Mesh 개수 제한 여부 |
| meshCount | int | Triangle Mesh 제한 개수 |
| unit | SimplifiedUnit | 간소화 단위 |
| virtualScreenSize | int | 가상 이미지 크기 : 1024, 2048, 4096, ... |
| virtualScreenCount | int | 가상 이미지 개수 : 1, 2, 3, ... |
| showFileInExplorer | bool | 변환 후, 탐색기로 조회 |
Returns
| Type | Description |
|---|---|
| bool | 변환 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
string input = "C:\\Model\\Input.viz";
string output = "C:\\Model\\Output.viz";
vizcore3d.Model.ExportSimplifiedModel(
input /* INPUT FILE */
, output /* OUTPUT FILE */
, false /* KEEP Structure */
, false /* Limit BoundBox */
, 0.0f /* BoundBox - Min. X */
, 0.0f /* BoundBox - Min. Y */
, 0.0f /* BoundBox - Min. Z */
, 0.0f /* BoundBox - Max. X */
, 0.0f /* BoundBox - Max. Y */
, 0.0f /* BoundBox - Max. Z */
, false /* Limit Mesh Count */
, 0 /* Mesh Count */
, VIZCore3D.NET.Manager.ModelManager.SimplifiedUnit.TRIANGLE_MESH /* Unit */
, 1024 /* Virtual Screen Size */
, 1 /* Virtual Screen Count */
);
}
ExportSimplifiedModel(string output, bool keepStructure, SimplifiedUnit unit, int virtualScreenSize, int virtualScreenCount, ExcludeHiddenObjects excludeHiddenObjects, bool showFileInExplorer)
public bool ExportSimplifiedModel(string output, bool keepStructure, SimplifiedUnit unit, int virtualScreenSize, int virtualScreenCount, ExcludeHiddenObjects excludeHiddenObjects, bool showFileInExplorer)
현재 모델의 단순화(간소화) 모델 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| output | string | VIZ 파일 |
| keepStructure | bool | Assembly Structure 유지 여부. 권장값 : False |
| unit | SimplifiedUnit | 간소화 단위 |
| virtualScreenSize | int | 가상 이미지 크기 : 1024, 2048, 4096, ... |
| virtualScreenCount | int | 가상 이미지 개수 : 1, 2, 3, ... |
| excludeHiddenObjects | ExcludeHiddenObjects | 숨겨진 개체는 제외하고 간소화 수행 후, 내보내기 파일에 숨겨진 개체는 포함 |
| showFileInExplorer | bool | 변환 후, 탐색기로 조회 |
Returns
| Type | Description |
|---|---|
| bool | 변환 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
List<string> keyword = new List<string>();
keyword.Add("(OBST)");
keyword.Add("(INSU)");
List<VIZCore3D.NET.Data.Node> nodes =
vizcore3d.Object3D.Find.QuickSearch(
keyword /* Keyword */
, false /* Join Codition : True(AND), False(OR) */
, false /* Assembly Only : True(Assembly Only), False(All) */
, false /* Visible Only : True(Visible Only), False(All) */
, false /* Selected Only : True(Selected Only), False(All) */
, false /* Full Keyword Match : True(Full Match), False(Contains) */
, false /* Contain NodePath : True(Contain), False(Except) */
);
if (nodes.Count == 0) return;
vizcore3d.Object3D.Show(nodes, false);
string output = "C:\\Temp\\Output.viz";
vizcore3d.Model.ExportSimplifiedModel(
output /* OUTPUT */
, false /* Keep Structure */
, VIZCore3D.NET.Manager.ModelManager.SimplifiedUnit.TRIANGLE_SET_MESH
, 1024 /* Virtual Screen Size */
, 1 /* Virtual Screen Count */
, VIZCore3D.NET.Manager.ModelManager.ExcludeHiddenObjects.EXPORT_VISIBLE
, true
);
}
ExportSimplifiedModel(string output, bool keepStructure, bool limitBoundBox, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool limitMesh, int meshCount, SimplifiedUnit unit, int virtualScreenSize, int virtualScreenCount, ExcludeHiddenObjects excludeHiddenObjects, bool showFileInExplorer)
public bool ExportSimplifiedModel(string output, bool keepStructure, bool limitBoundBox, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, bool limitMesh, int meshCount, SimplifiedUnit unit, int virtualScreenSize, int virtualScreenCount, ExcludeHiddenObjects excludeHiddenObjects, bool showFileInExplorer)
현재 모델의 단순화(간소화) 모델 내보내기
Parameters
| Name | Type | Description |
|---|---|---|
| output | string | VIZ 파일 |
| keepStructure | bool | Assembly Structure 유지 여부. 권장값 : False |
| limitBoundBox | bool | BoundBox 크기 제한 여부 |
| minX | float | BoundBox Min. X |
| minY | float | BoundBox Min. Y |
| minZ | float | BoundBox Min. Z |
| maxX | float | BoundBox Max. X |
| maxY | float | BoundBox Max. Y |
| maxZ | float | BoundBox Max. Z |
| limitMesh | bool | Triangle Mesh 개수 제한 여부 |
| meshCount | int | Triangle Mesh 제한 개수 |
| unit | SimplifiedUnit | 간소화 단위 |
| virtualScreenSize | int | 가상 이미지 크기 : 1024, 2048, 4096, ... |
| virtualScreenCount | int | 가상 이미지 개수 : 1, 2, 3, ... |
| excludeHiddenObjects | ExcludeHiddenObjects | 숨겨진 개체는 제외하고 간소화 수행 후, 내보내기 파일에 숨겨진 개체는 포함 |
| showFileInExplorer | bool | 변환 후, 탐색기로 조회 |
Returns
| Type | Description |
|---|---|
| bool | 변환 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
string output = "C:\\Model\\Output.viz";
vizcore3d.Model.ExportSimplifiedModel(
output /* OUTPUT FILE */
, false /* KEEP Structure */
, false /* Limit BoundBox */
, 0 /* BoundBox - Min. X */
, 0 /* BoundBox - Min. Y */
, 0 /* BoundBox - Min. Z */
, 0 /* BoundBox - Max. X */
, 0 /* BoundBox - Max. Y */
, 0 /* BoundBox - Max. Z */
, false /* Limit Mesh Count */
, 0 /* Mesh Count */
, VIZCore3D.NET.Manager.ModelManager.SimplifiedUnit.TRIANGLE_MESH /* Unit */
, 1024 /* Virtual Screen Size */
, 1 /* Virtual Screen Count */
, VIZCore3D.NET.Manager.ModelManager.ExcludeHiddenObjects.NONE /* Exclude Hidden Objects */
, false /* Show Explorer */
);
}