Cancel
Showing results for 
Search instead for 
Did you mean: 

Undocumented primitive type in JtkPMIVisualEntity::getVisualPolygonData ?

Valued Contributor
Valued Contributor

Hi all,

I'm reading PMI data from a Jt file.

I'm trying to get the glyph of a dimension PMI using 

JtkPMIVisualEntity::getVisualPolygonData

The documentation states:

primTypes - The type of each primitive.
0 - Triples of vertices interpreted as triangles.
1 - Linked strip of triangles.
2 - Linked fan of triangles.
3 - Boundary of a simple convex polygon.

 

BUT in the primTypes with, primTypeLength == 2,

I get 

primTypes[0] == 4

and 

primTypes[0] == 1

while 4 is not a type of primitive Smiley Sad

 

Any hint about what primitive is primitive type 4 ?

 

Thanks

 

Nicolas

 

2 REPLIES

Re: Undocumented primitive type in JtkPMIVisualEntity::getVisualPolygonData ?

Siemens Genius Siemens Genius
Siemens Genius

The value you are seeing is an index range.

The following has been added to the JT Open Toolkit release 9 documention.

  • The first value of the first pair in primTypes specifies an offset in primIndices.
  • Primitives up to, but not including, the offset are of a particular type.
  • That type is defined by the second value of the first pair.
  • The first value of the second pair specifies another offset.
  • Primitives up to, but not including, the second offset are of a different type. That different type is defined by the second value of the second pair.
  • So primitives of a particular type in primIndices continue from the first value of the first pair in primTypes to one less than the first value of the second pair. The pairs in primTypes continue to specify offsets in primIndices and primitive types until the last pair, whose second value is the last valid type.
  • The first value of the last pair itself specifies an invalid offset in the primIndices array.
Mike Z

Re: Undocumented primitive type in JtkPMIVisualEntity::getVisualPolygonData ?

Valued Contributor
Valued Contributor

Great Smiley Happy

thank you