본문으로 건너뛰기

SplitObjects

Overloads

NameDescription
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&lt;Node&gt; nodes, int sectionId, bool selectedOnly)

모델 자르기

Parameters

NameTypeDescription
nodesList<Node>내보내기 대상 노드
sectionIdint내보내기 영역
selectedOnlybool선택된 모델만 내보내기

Returns

TypeDescription
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

NameTypeDescription
sectionIdint내보내기 영역
selectedOnlybool선택된 모델만 내보내기

Returns

TypeDescription
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

NameTypeDescription
pathstring저장 파일 경로
sectionIdint섹션 ID

Returns

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