Class SoSegmentChain

  • All Implemented Interfaces:
    SafeDisposable

    @Deprecated(since="2023.2")
    public class SoSegmentChain
    extends SoFieldContainer
    Deprecated.
    As of Open Inventor 2023.2. ImageViz API is replaced by the new ImageDev toolkit.
    class that reprensents a chain of segments.

    SoFieldContainer

    • Field Detail

      • sizes

        public final SoMFInt32 sizes
        Deprecated.
        Array containing the number connected vertices in each segment chain. The size of the array is the number of chains.

        A chain with n connected vertices has (n-1) segment. A chain cannot have less than 2 vertices.

      • vertices

        public final SoMFVec3d vertices
        Deprecated.
        Ordered list of vertices used in all the segment chains. 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];
         }
    • Constructor Detail

      • SoSegmentChain

        public SoSegmentChain()
        Deprecated.
        Default constructor.