Search
Preparing search index...
The search index is not available
@yiwo/ycad
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@yiwo/ycad
Region
Class Region
Hierarchy
Region
Index
Constructors
constructor
Properties
AABB
area
height
id
inner
Polygon
name
pia
sel
Polygon
Methods
arc
Belong
To
belong
To
clone
contains
get
Frames
get
Mid
Polygon
is
Same
need
Reverse
need
Update
update
updateAABB
Constructors
constructor
new
Region
(
name
:
string
, innerPolygon
?:
Vector3
[]
, id
?:
string
, pia
?:
Vector2
, height
?:
number
)
:
Region
Parameters
name:
string
Optional
innerPolygon:
Vector3
[]
Optional
id:
string
Optional
pia:
Vector2
Optional
height:
number
Returns
Region
Properties
Optional
AABB
AABB
?:
Box2
area
area
:
number
= 0
height
height
:
number
= 2.65
id
id
:
string
inner
Polygon
inner
Polygon
:
Vector3
[]
= []
name
name
:
string
Optional
pia
pia
?:
Vector2
sel
Polygon
sel
Polygon
:
Vector3
[]
= []
Methods
arc
Belong
To
arc
Belong
To
(
arc
:
Arc2d
, frameWidth
:
number
)
:
boolean
判断一段圆弧是否属于该房间
Parameters
arc:
Arc2d
frameWidth:
number
Returns
boolean
belong
To
belong
To
(
p1
:
V2d
, p2
:
V2d
, frameWidth
:
number
)
:
boolean
判断p1到p2的线段是否属于该房间
Parameters
p1:
V2d
p2:
V2d
frameWidth:
number
Returns
boolean
clone
clone
(
)
:
Region
Returns
Region
contains
contains
(
p
:
V2d
)
:
boolean
Parameters
p:
V2d
Returns
boolean
get
Frames
get
Frames
(
doc
:
YWDocument
, context
:
TriangulateService
)
:
string
[]
Parameters
doc:
YWDocument
context:
TriangulateService
Returns
string
[]
get
Mid
Polygon
get
Mid
Polygon
(
defaultInnerPolygons
:
Vector3
[]
[]
)
:
Vector3
[]
Parameters
defaultInnerPolygons:
Vector3
[]
[]
Returns
Vector3
[]
is
Same
is
Same
(
polygon_
:
Vector3
[]
)
:
boolean
Parameters
polygon_:
Vector3
[]
Returns
boolean
need
Reverse
need
Reverse
(
p1
:
V2d
, p2
:
V2d
, frameWidth
:
number
, minLen
?:
number
)
:
undefined
|
boolean
判断传入seg[p1, p2]在当前region.polygon上关系
Parameters
p1:
V2d
p2:
V2d
frameWidth:
number
Optional
minLen:
number
Returns
undefined
|
boolean
need
Update
need
Update
(
polygon_
:
Vector3
[]
, threshold
?:
number
)
:
boolean
Parameters
polygon_:
Vector3
[]
threshold:
number
= 0.001
Returns
boolean
update
update
(
innerPolygon
:
Vector3
[]
)
:
void
Parameters
innerPolygon:
Vector3
[]
Returns
void
updateAABB
updateAABB
(
)
:
void
Returns
void
Exports
Region
constructor
AABB
area
height
id
inner
Polygon
name
pia
sel
Polygon
arc
Belong
To
belong
To
clone
contains
get
Frames
get
Mid
Polygon
is
Same
need
Reverse
need
Update
update
updateAABB
Generated using
TypeDoc
判断一段圆弧是否属于该房间