GeOnDT GeOnDT for JS

Class: UClipModelFilter

UClipModelFilter

~extends UEventDispatcher
클리핑 분석(clipping) 관련 클래스
사용자가 잘라낸 모델 대상 필터 객체입니다.

new UClipModelFilter(options)

클리핑 분석(clipping) 관련 클래스

Name Type Default Description
options UClipModelFilterCO {} optional
Example
let newFilter = new UClipModelFilter({
    id: 'test',
    type: 'model',
    geometry: options.geometry,
    layers: ['satellite'],
    axis: 'x',
    size: 100000,
    app: U3dApp
});

Members

axisstring

centerVecVector3 undefined

defaultStyleObject

geometryany

idstring

layersArray.<string> undefined

normalVecVector3 undefined

resultArray.<UMesh>

sizenumber

sizePlaneundefined Plane Partial.<{uuid: string}>

styleObject

typestring

widthnumber

Methods

filterMesh(mesh)boolean

filter에 대상이 되는지에 대한 여부를 반환

Name Type Description
mesh UMesh

검색 대상

Returns:
Type Description
boolean 교차 여부

getClipArea(mesh)

대상 mesh의 절단면에 대한 정보를 담은 객체를 반환

Name Type Description
mesh UMesh

대상 mesh

Returns:
해당 filter로 mesh의 절단면에 대한 정보를 담은 객체 (대상이 아니면 undefined)

getClipPoint(mesh)Vector3|undefined

대상 mesh의 절단면 중에 가장 높은 지점 반환

Name Type Description
mesh UMesh

대상 mesh

Returns:
Type Description
Vector3 | undefined 절단면 중에 가장 높은 위치의 world 좌표 값

getType()string

Returns:
Type Description
string

intersectMesh(mesh)boolean

filter에 대상이 되는지에 대한 여부를 반환

Name Type Description
mesh UMesh

검색 대상

Returns:
Type Description
boolean 교차 여부

isIncludeLayer(layerName)boolean

filter의 대상이 되는 layer의 목록을 검색하는 함수

Name Type Description
layerName string | undefined

검색 하려는 layer의 이름

Returns:
Type Description
boolean 검색 대상 여부

match(mesh)boolean

입력 받은 mesh가 현재의 filter에 대상이 되는지에 대한 여부를 반환, 대상이 될 경우 해당 mesh를 filter로 영역으로 자름

Name Type Description
mesh UMesh

filter에 검색하려는 대상

Returns:
Type Description
boolean 검색 여부

reset(mesh, layer)boolean

filter에 대상이 되어 잘리거나 사라진 mesh를 복원하는 함수

Name Type Description
mesh UMesh

복원 하려는 대상

layer ClippingLayer

복원 대상이 속한 layer

Returns:
Type Description
boolean 복원 완료 여부

setAxis(axis)

Name Type Description
axis string

setSize(size)

Name Type Description
size number

Type Definitions

UClipModelFilterCOobject

~extends UEventDispatcher~UEventDispatcherCO
UClipModelFilter 생성자 옵션

Properties:
Name Type Argument Default Description
id string <optional>

편집지형 ID

geometry OLGeometry <optional>

ol의 feature polygon geometry

layers Array.<string> <optional>

클리핑 할 layer 이름 목록

app U3dApp <optional>

앱 인스턴스

type string <optional>
'model'

필터링 type

axis string <optional>

필터링 기준 축 ( x축: 'x', y축: 'y', z축: 'z', 높이 : 'height', 사용자 임의 축 : 'custom' )

size number <optional>

필터링 기준에서의 대상 범위

style Object <optional>

스타일 옵션

selector U3dSelect <optional>

셀렉터