跳到主要内容
版本:v10.0

M3D / M3D / FrustumOctreeQuery

Class: FrustumOctreeQuery

M3D.FrustumOctreeQuery

Memberof

M3D

Description

八叉树截锥体查询

Author

ss

Date

2022-1-17

Version

1.0

Copyright

All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new FrustumOctreeQuery(result, frustum, cullerHelper, drawableFlags, viewMask): FrustumOctreeQuery

Parameters

NameType
resultnumber[]
frustumFrustum
cullerHelperCullerHelper
drawableFlagsnumber
viewMasknumber

Returns

FrustumOctreeQuery

Description

构造函数

Overrides

OctreeQuery.constructor

Properties

camera

camera: Camera

Inherited from

OctreeQuery.camera


cameraPostition

cameraPostition: Vector3


cameraisOrthographic

cameraisOrthographic: boolean


cullerHelper

cullerHelper: CullerHelper


drawableFlags

drawableFlags: any

Inherited from

OctreeQuery.drawableFlags


frustum

frustum: Frustum


renderAction

renderAction: any

Inherited from

OctreeQuery.renderAction


result

result: number[]

Inherited from

OctreeQuery.result


viewMask

viewMask: any

Inherited from

OctreeQuery.viewMask

Methods

getCamera

getCamera(): Camera

Returns

Camera

Description

获取相机

Inherited from

OctreeQuery.getCamera


release

release(): void

Returns

void

Description

释放


setCamera

setCamera(camera): void

Parameters

NameType
cameraCamera

Returns

void

Description

设置相机

Inherited from

OctreeQuery.setCamera


testDrawables

testDrawables(drawables, inside): void

Parameters

NameType
drawablesnumber[]
insideboolean

Returns

void

Description

检测与绘制对象相交情况

Overrides

OctreeQuery.testDrawables


testDrawables1

testDrawables1(drawables, inside): any[]

Parameters

NameType
drawablesnumber[]
insideboolean

Returns

any[]

Description

检测与绘制对象相交情况


testOctant

testOctant(box, inside): Intersection

Parameters

NameType
boxBoundingBox
insideboolean

Returns

Intersection

Description

检测与八叉树节点相交情况

Overrides

OctreeQuery.testOctant