News:

New TurboCAD Mac 2D/3D Training Essentials

Main Menu

Loss of accuracy / resolution with large offset from origin?

Started by andym2, January 20, 2016, 02:40:09 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

andym2

I'm working on a drawing that's based on UK OS map data. The drawing units are Metres and the data was imported as a DXF. The coordinates, based on the UK National Grid origin, are in the 100,000s of m range, e.g. 428672.123, 349451.456.

The actual drawing area is only about 500m x 500m, but I see some odd behaviour. e.g. spliting lines results in the midpoint/ new endpoints being off the original line slightly,  and circles looking like rough polygons when you zoom in. As an example, the attached screen shot is a 1m circle.

I assume this is a result of rounding or the internal precision TC is using. Is this a known issue and are there any workarounds?

andym2

I've tried it with v8 Deluxe, Build 1165 from memory - not at my iMac at the moment and a Trial version of v9.

It's much better with v9, though you can still see the effect.  With v9, strangely it gets worse if you increase the resolution. Coarse looks like a fairly regular polygon, but super fine it looks a lot more random.

At a guess it I think it's the code using single precission floats somewhere, as it seems to be a function of the distance from the origin. In v8 I tried moving every object closer to the origin, but that didn't work because I couldn't seem to select everything because of the layers and grouping inherited from the import.

is there anyway to set a workspace or drawing co-ordinate system at an offset from the world origin? Would that help or would it just get converted back to world coordinates anyway?

andym2

I've managed to select everything and move it to the origin and that seems to have fixed it.

I can re-create the problem in a new drawing, without importing anything...

1 - Set the units to Meters and create a new drawing.
2 - Add a circle, diameter 1m, centred at 2,2,0 . This will look fine.
3 - Add a line from the centre of the circle, drag the angle up to about 30deg, then enter the length as 456789 and press 'return'.
4 - Zoom out until you see the far end of the line, then add another 1m circle at the far end.
5 - Zoom in on the new circle, and you'll see the effect that I'm talking about.
6 - Add some more circles in this region and you'll see the same effect with them.
6 - Select the circle, and on the inspector change the resolution to coarse, medium, fine, etc and see how it changes. Superfine looks the most jagged.

It does seem to be just a rendering problem, because if you move the objects near to the origin, they look normal again.

Thanks for your interest,

Regards,
Andy.

John R

TurboCAD Windows experiences this same problem. They're adding a "Double Precision" option to that program that corrects this.

John R

I would bother him, just to let him know that this also occurs in the Mac product line. They might not wait until TC Mac 10 to put in a fix.