Showing results for 
Search instead for 
Do you mean 
Reply

Tessallate to get triangles strips

Hi All,

I'll try to be as specific as possible. If I'm not clear, please let me know.

I'm using version 8.0 of the SDK.

 

I'm parsing a JT file using the jtkTraverser class and a callback.

In that callback, as shown in the traverse sample, in case I find a jtkPart, I aim to tesselate this jtkPart into jtkTristrip a stated page 173 of the functional_description.pdf.

 

The problem is that he part returns 0 when I call numTessParams on the jtkPart.

 

I tried creating my own polygonset after calling getInternal and getinternals on the shapes of the part to pass it to JtkEntityFactory::createTriStripSet but the model contains part set that are edges (2 vertices) and not triangles.

 

What would be the good method to tessellate a jtkpart to triangle strips when numTessParams returns 0 ?

 

I can give details if I'm not clear enough.

 

Thank you for your help, guys.

 

N

1 REPLY

Re: Tessallate to get triangles strips

Answering my own question here.
Problem solved taking a direct way: cast jtkPart depending on type, a simple switch and it works.

N

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