Click or drag to resize

Object3DManagerSplitObjects Method (ListNode, Int32, Boolean)

모델 자르기

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public bool SplitObjects(
	List<Node> nodes,
	int sectionId,
	bool selectedOnly
)

Parameters

nodes
Type: System.Collections.GenericListNode
내보내기 대상 노드
sectionId
Type: SystemInt32
내보내기 영역
selectedOnly
Type: SystemBoolean
선택된 모델만 내보내기

Return Value

Type: Boolean
결과
Examples
C#
// 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 */
        );
}
See Also