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.
Hi David,
could you post the resulting DWF so we can take a look.
Thanks
Thomas
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