public class SoSegmentChain extends SoFieldContainer
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoMFInt32 |
sizes
Array containing the number connected vertices in each segment chain.
|
SoMFVec3d |
vertices
Ordered list of vertices used in all the segment chains.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoSegmentChain()
Default constructor.
|
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoMFInt32 sizes
A chain with n connected vertices has (n-1) segment. A chain cannot have less than 2 vertices.
public final SoMFVec3d vertices
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]; }
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com