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

M3D / M3D / Actions / RayPickIntersect

Class: RayPickIntersect

M3D.Actions.RayPickIntersect

Memberof

M3D.Actions

Description

存储射线与三角面片交点以及射线相交的三角面片法线的类

Table of contents

Constructors

Methods

Constructors

constructor

new RayPickIntersect(): RayPickIntersect

Returns

RayPickIntersect

Description

构造函数

Methods

addIntersectPnt

addIntersectPnt(pnt): void

Parameters

NameTypeDescription
pntVector3三维点

Returns

void

Description

添加射线与三角面片交点


addIntersectTriglePnt

addIntersectTriglePnt(pnt): void

Parameters

NameTypeDescription
pntVector3三维点

Returns

void

Description

添加射线相交的三角面片法线


clearIntersectPnts

clearIntersectPnts(): void

Returns

void

Description

清空射线与三角面片交点


clearIntersectTriglePnts

clearIntersectTriglePnts(): void

Returns

void

Description

清空射线相交的三角面片法线


clone

clone(): RayPickIntersect

Returns

RayPickIntersect

返回交点数据

Description

克隆一份交点数据


getIntersectPnt

getIntersectPnt(): Vector3[]

Returns

Vector3[]

三维点数组

Description

获取射线与三角面片交点


getIntersectTriglePnt

getIntersectTriglePnt(): Vector3[]

Returns

Vector3[]

三维点数组

Description

获取射线相交的三角面片法线


getZIndex

getZIndex(): number

Returns

number

返回zIndex

Description

获取zIndex


setZIndex

setZIndex(zIndex): void

Parameters

NameType
zIndexnumber

Returns

void

Description

设置zIndex