Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Undocumented primitive type in JtkPMIVisualEntity::getVisualPolygonData ?

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
Solution
Solution
Accepted by topic author NicolasB
2 weeks ago

Re: Undocumented primitive type in JtkPMIVisualEntity::getVisualPolygonData ?

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 ?

Great Smiley Happy

thank you

What is JT?

JT is the World’s Most Widely Used 3D File Format for PLM

JT is the common language of PLM and is the world’s most widely used 3D format. JT is the first ISO International Standard ( IS 14306-1) for 3D visualization and collaboration. Compact and accurate, JT is used throughout the product development lifecycle in all major industries to communicate the critical design information typically locked up inside a CAD file.

Siemens PLM Software customers rely on JT to be the most robust 3D visualization format available.

JT Open Factsheet
JT Open Member Resources
JT Open Documentation Technology
JT Open File Format Technology
JT Open Toolkit

Downloadable viewers for Windows Desktop, Windows 10 Universal App, Android and iOS.


Download JT2Go for your platform today Download JT2Go Desktop 64 Bit all languages
Download JT2Go Desktop 32 Bit for English
Windows 10 JT2Go Universal App
Android JT2Go
iOS JT2Go