Related Scripting Object: EdgeCollection
Array of Edge objects. More...
#include <xsi_edge.h>
Inheritance diagram for CEdgeRefArray:

Public Member Functions |
|
| CEdgeRefArray () | |
| CEdgeRefArray (const CEdgeRefArray &in_array) | |
| CRef | GetItem (LONG in_index) const |
| CRef | GetItem (const CString &in_name) const |
| LONG | GetCount () const |
| bool | IsValid () const |
| CVertexRefArray | GetNeighborVertices (LONG in_lDistance=1) const |
| CEdgeRefArray | GetNeighborEdges (LONG in_lDistance=1) const |
| CPolygonFaceRefArray | GetNeighborPolygons (LONG in_lDistance=1) const |
| CEdgeRefArray | GrowNeighborEdges (LONG in_lDistance=1) const |
| CDoubleArray | GetCreaseArray () const |
| CBoolArray | GetIsHardArray () const |
using namespace XSI; Application app; Model root = app.GetActiveSceneRoot(); X3DObject myCube; root.AddGeometry( L"Cube", L"MeshSurface", L"", myCube ); PolygonMesh mesh( myCube.GetActivePrimitive().GetGeometry() ); CEdgeRefArray edges(mesh.GetEdges()); app.LogMessage( L"Number of edges: " + CValue(edges.GetCount()).GetAsText() );
| CEdgeRefArray | ( | ) |
Constructor.
| CEdgeRefArray | ( | const CEdgeRefArray & | in_array | ) |
Copy constructor.
| in_array | constant CEdgeRefArray reference object. |
| CRef GetItem | ( | LONG | in_index | ) | const [virtual] |
Returns the Edge object at the specified index in the array.
| in_index | The index of the Edge. |
Reimplemented from CSegmentRefArray.
Returns the Edge object in the array matching the specified name.
| in_name | The name of the Edge. |
Reimplemented from CSegmentRefArray.
| LONG GetCount | ( | ) | const [virtual] |
Gets the number of Edges in the array.
Reimplemented from CSegmentRefArray.
| bool IsValid | ( | ) | const [virtual] |
Returns true if this array is a valid object or false otherwise.
Reimplemented from CSegmentRefArray.
| CVertexRefArray GetNeighborVertices | ( | LONG | in_lDistance = 1 |
) | const |
Returns an array of Vertex neighbors within a given distance.
| in_lDistance | Value Represents the degree of neighborhood (eg., degree=2 for an edge means its adjacent vertices plus the adjacent vertices of the adjacent vertices). |
| CEdgeRefArray GetNeighborEdges | ( | LONG | in_lDistance = 1 |
) | const |
Returns an array of Edge neighbors within a given distance.
| in_lDistance | Value representing the degree of neighborhood (eg., degree=2 for an edge means its adjacent vertices plus the adjacent vertices of the adjacent vertices). |
| CPolygonFaceRefArray GetNeighborPolygons | ( | LONG | in_lDistance = 1 |
) | const |
Returns an array of PolygonFace neighbors within a given distance.
| in_lDistance | Value representing the degree of neighborhood (eg., degree=2 for an edge means its adjacent vertices plus the adjacent vertices of the adjacent vertices). |
| CEdgeRefArray GrowNeighborEdges | ( | LONG | in_lDistance = 1 |
) | const |
Returns an array of Edge objects on the geometry that are adjacent to the Edge objects contained in the array, within a given distance.
| in_lDistance | Value representing the degree of neighborhood (eg., degree=2 for an edge means its adjacent vertices plus the adjacent vertices of the adjacent vertices). |
| CDoubleArray GetCreaseArray | ( | ) | const |
Returns an array of crease values for all edges contained in this edge array.
| CBoolArray GetIsHardArray | ( | ) | const |
Returns an array of boolean values indicating whether each edge in the array is hard or not.