PDA

View Full Version : Turning a path into a wireframe


Salvar
04-11-2012, 03:27 PM
Hi.

I'm currently trying to turn a set of coordinates that form a curved line into a wireframe of a road where these coordinates define the middle of the street.

The simplest I've come up with is using the coordinates to draw a very thick line (via viz.LINE_STRIP and viz.linewidth) and setting the polygon mode to POLY_WIRE, but it comes out as a filled line with very jaggy edges.

Any ideas? I'm probably missing something obvious here.

Thanks.

Jeff
04-13-2012, 08:27 AM
Have you tried enabling anti-aliasing?
http://kb.worldviz.com/articles/831

Salvar
04-13-2012, 09:46 AM
I have not. Thanks, I'll try that. But that still leaves the issue of POLY_WIRE giving me a filled area. Does this only apply to polygon shapes, and not lines?

Jeff
04-14-2012, 06:35 AM
Yes, that applies to polygons. You'll have to create two parallel line strips with smaller widths.

Salvar
04-17-2012, 05:25 PM
All right, thanks for the help.