Ngon Class Reference
Library
»
Ngon
#include <lib_ngon.h>
构造函数 & 析构函数文档编制
◆
Ngon()
[1/3]
Constructor.
◆
~Ngon()
Destructor.
◆
Ngon()
[2/3]
Constructor from polygon in
ply
.
-
参数
-
◆
Ngon()
[3/3]
Copy constructor from another N-gon in
src
.
-
参数
-
成员函数文档编制
◆
operator=()
Assignment operator.
-
参数
-
-
返回
-
The assigned N-gon.
◆
Alloc()
Allocates data for
cnt
points and
scnt
segments.
-
参数
-
[in]
|
cnt
|
The point count.
|
[in]
|
scnt
|
The segment count.
|
-
返回
-
true
if successful, otherwise
false
.
◆
Free()
Frees the internal data.
◆
CopyFrom()
[1/2]
Copies data from
src
.
-
参数
-
[in]
|
src
|
The source N-gon.
|
-
返回
-
true
if successful, otherwise
false
.
◆
CopyFrom()
[2/2]
Copies data from the passed arrays.
-
参数
-
[in]
|
cnt
|
The point count.
|
[in]
|
scnt
|
The segment count.
|
[in]
|
pts
|
The points array. The caller owns the pointed array.
|
[in]
|
segs
|
The segments array. The caller owns the pointed array.
|
-
返回
-
true
if successful, otherwise
false
.
◆
Release()
Releases the internal arrays, i.e. so that they are not freed by the destructor.
◆
CalcArea()
Calculates the N-gon area.
-
参数
-
[in]
|
seg
|
The segment.
|
[in]
|
p
|
The points array.
|
[in]
|
m
|
The projection matrix.
|
-
返回
-
The calculated area.
Member Data Documentation
◆
points
Point array.
◆
segments
Segments array.
◆
count
Point count.
◆
segcount
Segment
count.