Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TK_Polypoint rendering error in Navisworks

2 REPLIES 2
Reply
Message 1 of 3
davidm_adn
433 Views, 2 Replies

TK_Polypoint rendering error in Navisworks

Hi,

 

I am writing 3D dwfx files using DWF Toolkit 7.7.  If I write a polyline, it looks fine in Design Review and HOOPS applications, but Navisworks does not draw every other segment, ie it draws alternate segments in the polyline.  I don't really want to create separate line segments instead, just so that Navisworks draws correctly.  Does anybody know about this?  Here is my polyline code, I checked the DWF back in SimpleW3DStreamProcessor and the data is fine.

 

DWFSegment oString (pParent->openSegment());
oString.open ("Polyline");
TK_Polypoint& string = oString.getPolylineHandler();

float pts[15];
pts[0] = 0; pts[1] = 0; pts[2] = 0;
pts[3] = 100; pts[4] = 0; pts[5] = 0;
pts[6] = 100; pts[7] = 100; pts[8] = 0;
pts[9] = 0; pts[10] = 100; pts[11] = 0;
pts[12] = 0; pts[13] = 0; pts[14] = 0;

string.SetPoints (5, pts);

string.serialize();
oString.close();

 

So this code should draw a square from 0,0 to 100,100.  Looks fine in Design Review and HOOPS; Navisworks just draws the top and bottom sides, ie sides 0 and 2.

 

Thanks for any help.

2 REPLIES 2
Message 2 of 3

Hi David, 

 

could you post the resulting DWF so we can take a look. 

 

Thanks

Thomas

Thomas Schwaiger
Product Manager
Autodesk

Message 3 of 3

Hi,

 

I have since worked around the problem by creating separate line segments (grouped into one node) so I don't have a sample now, but it's easy to reproduce the problem by using the code I put in the original post.

 

Thanks,
Dave

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services