Click or drag to resize
SoSegmentChainvertices Property

Ordered list of vertices used in all the segment chains.

Namespace: OIV.ImageViz.Nodes.Geometries
Assembly: OIV.ImageViz (in OIV.ImageViz.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public SoMFVec3d vertices { get; }

Property Value

Type: SoMFVec3d
Remarks

Here is an example on how to iterate over each vertices of each chain.

int indexAccumulator = 0;
for (int chainIndex=0; chainIndex<sizes.getNum(); ++chainIndex)
{
 for (int vertexIndex=0; vertexIndex<sizes[chainIndex]; ++vertexIndex)
 {
   fprintf(stdout,"chain %d - vertices %d = (%.3g %.3g %.3g)\n",
        chainIndex, vertexIndex,
        vertices[indexAccumulator+vertexIndex][0],
        vertices[indexAccumulator+vertexIndex][1],
        vertices[indexAccumulator+vertexIndex][2]
   );
 }
 indexAccumulator += sizes[chainIndex];
}

See Also