Cancel
Showing results for 
Search instead for 
Did you mean: 

Tessallate to get triangles strips

Valued Contributor
Valued Contributor

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

2 REPLIES

Re: Tessallate to get triangles strips

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

N

Re: Tessallate to get triangles strips

Experimenter
Experimenter

Hello Nicolas,

 

I have a similar query.

 

can you please see my discussion thread (link given below) and help me resovle my issue?

 

https://community.plm.automation.siemens.com/t5/JT-Open-Toolkit-Forum/How-to-map-tessellation-to-top...

 

Thanks

Sathish