AnyCAD Rapid API 2023
Help you to create a better world!
|
Public 成员函数 | |
boolean | Initialize (GRepShape shape, EnumShapeFilter faceOrEdge) |
boolean | More () |
void | Next () |
BufferGeometry | Current () |
Float32Array | GetPositions () |
Uint16Array | GetIndex () |
Float32Array | GetNormals () |
Float32Array | GetTexCoords () |
<>
用来遍历GRepShape里的内容。面对应的是TRIANGLES; 边对应的为LINE_STRIP,即多折线。
for(itr.Initialize(shape, EnumShapeFilter.Edge);itr.More(); itr.Next())
{
var postions = itr.Positions();
}
Uint16Array GRepIterator.GetIndex | ( | ) |
获取面的索引列表
Float32Array GRepIterator.GetNormals | ( | ) |
获取面的法向
Float32Array GRepIterator.GetPositions | ( | ) |
获取顶点列表。
Float32Array GRepIterator.GetTexCoords | ( | ) |
获取面的纹理坐标
boolean GRepIterator.Initialize | ( | GRepShape | shape, |
EnumShapeFilter | faceOrEdge | ||
) |
初始化
shape | GRepShape对象 |
faceOrEdge | 遍历面还是边。 |
boolean GRepIterator.More | ( | ) |
是否遍历结束
void GRepIterator.Next | ( | ) |
下一个元素。