GeOnDT GeOnDT for JS

Class: U3dGeometryUtil

U3dGeometryUtil

3D 지오메트리 유틸리티 클래스

new U3dGeometryUtil()

Methods

geometry3dToFeature(geometry, offsetX, offsetY, drawarg, srs)OLGeometry|undefined

3D 지오메트리를 OL Polygon Geometry로 변환하는 함수입니다.

Name Type Default Description
geometry Object

변환할 지오메트리 객체

offsetX number 0 optional

X 오프셋

offsetY number 0 optional

Y 오프셋

drawarg UDrawArg optional

DrawArg 객체

srs string 'epsg:4326' optional

좌표계

Returns:
Type Description
OLGeometry | undefined OL Polygon Geometry

mergeByMesh(dst, src, material)UMesh

두 메쉬의 geometry를 하나로 병합해 새 메쉬를 반환합니다.
여러 도형을 draw call 하나로 합쳐 렌더링 성능을 높입니다.

Name Type Description
dst Mesh

대상 메쉬

src Mesh

원본 메쉬

material Material optional

병합 메쉬에 적용할 재질

Returns:
Type Description
UMesh 병합된 메쉬

mergeVertices(geometry, tolerance)BufferGeometry

중복 꼭짓점을 병합하는 함수입니다.

Name Type Default Description
geometry BufferGeometry

대상 geometry

tolerance number 1e-4 optional

병합 허용 오차

Returns:
Type Description
BufferGeometry 병합된 geometry