-
首页
-
C4D R23.110 C++ SDK
PgonEdge Class Reference
Library
»
Ngon
#include <lib_ngon.h>
成员函数文档编制
◆
IsFirst()
Checks if the polygon ID is the first occurrence in the array. This is useful to know which polygons form the N-gon.
-
返回
-
true
if the polygon ID is the first occurrence in the array, otherwise
false
.
◆
IsSegmentEnd()
Checks if the edge is the last in a segment.
-
返回
-
true
if the edge is the last in a segment, otherwise
false
.
◆
ID()
Gets the polygon ID.
-
返回
-
The polygon ID.
◆
State()
Gets the edge state.
-
返回
-
The edge as a bit, or
0
if the polygon has no edge on the outer/inner of the N-gon.
◆
Edge()
Gets the edge for the polygon.
-
返回
-
The edge of the polygon, or
NOTOK
for no edge.
◆
EdgeIndex()
Gets the edge index.
-
返回
-
The edge index:
4
* polygon ID + edge.
◆
GetEdge()
Retrieves in
p1
and
p2
the point IDs for the edge or
NOTINDEX
if it is not an N-gon edge.
-
参数
-
[in]
|
vadr
|
The polygon array. The caller owns the pointed array.
|
[out]
|
p1
|
Assigned the first point ID.
|
[out]
|
p2
|
Assigned the second point ID.
|
◆
RemapPolygon()
void RemapPolygon
|
(
|
Int32
|
new_poly
,
|
|
|
Int32
|
new_edge
|
|
)
|
|
|
Sets the polygon ID and edge ID for the edge. Pass
NOTINDEX
to make no change.
-
参数
-
[in]
|
new_poly
|
The new polygon ID.
|
[in]
|
new_edge
|
The new edge ID.
|
Member Data Documentation
◆
edge_index
Edge index.