Click or drag to resize

Object3DManagerFromZone Method (Single, Single, Single, Single, Single, Single, BoundBoxSearchOption, Boolean)

영역내의 개체를 반환

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public List<Node> FromZone(
	float minX,
	float minY,
	float minZ,
	float maxX,
	float maxY,
	float maxZ,
	BoundBoxSearchOption option,
	bool visibleOnly = true
)

Parameters

minX
Type: SystemSingle
최소점 X
minY
Type: SystemSingle
최소점 Y
minZ
Type: SystemSingle
최소점 Z
maxX
Type: SystemSingle
최대점 X
maxY
Type: SystemSingle
최대점 Y
maxZ
Type: SystemSingle
최대점 Z
option
Type: VIZCore3D.NET.DataBoundBoxSearchOption
영역 포함 옵션
visibleOnly (Optional)
Type: SystemBoolean
조회 개체 구분. True : 보이는 개체만 검색, False : 전체 개체 검색

Return Value

Type: ListNode
노드 목록
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    float x1, y1, z1, x2, y2, z2;
    x1 = 0.0f;
    y1 = 0.0f;
    z1 = 0.0f;

    x2 = 100.0f;
    y2 = 100.0f;
    z2 = 100.0f;

    List<VIZCore3D.NET.Data.Node> items =
        vizcore3d.Object3D.FromZone(
            x1, y1, z1
            , x2, y2, z2
            , VIZCore3D.NET.Data.BoundBoxSearchOption.FullyContained
            );
}

private void Example2()
{
    VIZCore3D.NET.Data.Vertex3D min = new Data.Vertex3D(0, 0, 0);
    VIZCore3D.NET.Data.Vertex3D max = new Data.Vertex3D(100, 100, 100);

    List<VIZCore3D.NET.Data.Node> items =
        vizcore3d.Object3D.FromZone(
            min
            , max
            , VIZCore3D.NET.Data.BoundBoxSearchOption.FullyContained
            );
}

private void Example3()
{
    VIZCore3D.NET.Data.BoundBox3D boundBox 
        = new Data.BoundBox3D(
            new float[] { 0, 0, 0 }
            , new float[] { 100, 100, 100 }
        );

    List<VIZCore3D.NET.Data.Node> items =
        vizcore3d.Object3D.FromZone(boundBox
        , VIZCore3D.NET.Data.BoundBoxSearchOption.FullyContained
        );
}
See Also