SplitObjects
Overloads
| Name | Description |
|---|---|
| SplitObjects(List<Node> nodes, int sectionId, bool selectedOnly) | 모델 자르기 |
| SplitObjects(int sectionId, bool selectedOnly) | 모델 자르기 |
| SplitObjects(string path, int sectionId) | 모델 자르기 |
SplitObjects(List<Node> nodes, int sectionId, bool selectedOnly)
public bool SplitObjects(List<Node> nodes, int sectionId, bool selectedOnly)
모델 자르기
Parameters
| Name | Type | Description |
|---|---|---|
| nodes | List<Node> | 내보내기 대상 노드 |
| sectionId | int | 내보내기 영역 |
| selectedOnly | bool | 선택된 모델만 내보내기 |
Returns
| Type | Description |
|---|---|
| bool | 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
if (vizcore3d.Section.SelectedItem == null) return;
VIZCore3D.NET.Data.Section section = vizcore3d.Section.SelectedItem;
if (section.SectionType != VIZCore3D.NET.Manager.SectionManager.SectionTypes.SECTION) return;
List<VIZCore3D.NET.Data.SectionPlane> items = section.Planes;
if (items == null) return;
vizcore3d.Object3D.SplitObjects(
nodes /* Selection Node List*/
, sectionId /* Section ID */
, true /* SelectedFlagOnly */
);
}
SplitObjects(int sectionId, bool selectedOnly)
public bool SplitObjects(int sectionId, bool selectedOnly)
모델 자르기
Parameters
| Name | Type | Description |
|---|---|---|
| sectionId | int | 내보내기 영역 |
| selectedOnly | bool | 선택된 모델만 내보내기 |
Returns
| Type | Description |
|---|---|
| bool | 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
if (vizcore3d.Section.SelectedItem == null) return;
VIZCore3D.NET.Data.Section section = vizcore3d.Section.SelectedItem;
if (section.SectionType != VIZCore3D.NET.Manager.SectionManager.SectionTypes.SECTION) return;
List<VIZCore3D.NET.Data.SectionPlane> items = section.Planes;
if (items == null) return;
vizcore3d.Object3D.SplitObjects(
section.ID /* Section ID */
, false /* selectedOnly*/
);
}
SplitObjects(string path, int sectionId)
public bool SplitObjects(string path, int sectionId)
모델 자르기
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | 저장 파일 경로 |
| sectionId | int | 섹션 ID |
Returns
| Type | Description |
|---|---|
| bool | 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
if (vizcore3d.Section.SelectedItem == null) return;
VIZCore3D.NET.Data.Section section = vizcore3d.Section.SelectedItem;
string path = "C:\\Model\\Outside.viz";
vizcore3d.Object3D.SplitObjects(
path /* Save Path*/
, sectionId /* Section ID */
);
}