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 meshUMesh 검색 대상
Returns:
Type Description boolean 교차 여부 -
getClipArea(mesh)
-
대상 mesh의 절단면에 대한 정보를 담은 객체를 반환
Name Type Description meshUMesh 대상 mesh
Returns:
해당 filter로 mesh의 절단면에 대한 정보를 담은 객체 (대상이 아니면 undefined) -
getClipPoint(mesh)Vector3|undefined
-
대상 mesh의 절단면 중에 가장 높은 지점 반환
Name Type Description meshUMesh 대상 mesh
Returns:
Type Description Vector3 | undefined 절단면 중에 가장 높은 위치의 world 좌표 값 -
getType()string
-
Returns:
Type Description string -
intersectMesh(mesh)boolean
-
filter에 대상이 되는지에 대한 여부를 반환
Name Type Description meshUMesh 검색 대상
Returns:
Type Description boolean 교차 여부 -
isIncludeLayer(layerName)boolean
-
filter의 대상이 되는 layer의 목록을 검색하는 함수
Name Type Description layerNamestring | undefined 검색 하려는 layer의 이름
Returns:
Type Description boolean 검색 대상 여부 -
match(mesh)boolean
-
입력 받은 mesh가 현재의 filter에 대상이 되는지에 대한 여부를 반환, 대상이 될 경우 해당 mesh를 filter로 영역으로 자름
Name Type Description meshUMesh filter에 검색하려는 대상
Returns:
Type Description boolean 검색 여부 -
reset(mesh, layer)boolean
-
filter에 대상이 되어 잘리거나 사라진 mesh를 복원하는 함수
Name Type Description meshUMesh 복원 하려는 대상
layerClippingLayer 복원 대상이 속한 layer
Returns:
Type Description boolean 복원 완료 여부 -
setAxis(axis)
-
Name Type Description axisstring -
setSize(size)
-
Name Type Description sizenumber
Type Definitions
-
UClipModelFilterCOobject
-
~extends UEventDispatcher~UEventDispatcherCO
UClipModelFilter 생성자 옵션Properties:
Name Type Argument Default Description idstring <optional>
편집지형 ID
geometryOLGeometry <optional>
ol의 feature polygon geometry
layersArray.<string> <optional>
클리핑 할 layer 이름 목록
appU3dApp <optional>
앱 인스턴스
typestring <optional>
'model' 필터링 type
axisstring <optional>
필터링 기준 축 ( x축: 'x', y축: 'y', z축: 'z', 높이 : 'height', 사용자 임의 축 : 'custom' )
sizenumber <optional>
필터링 기준에서의 대상 범위
styleObject <optional>
스타일 옵션
selectorU3dSelect <optional>
셀렉터