Coordinate System Limits ?

Well, well i felt so uncomfortable these days with the coordinate system limits that i decided to grab the source and see what’s going on, looking around the code i saw that
all coords are handled by floats… mmm that seems that a float can handle more than
10000 as highest number … so probably i’m wrong… (by the way this is my first time with the source).

Also i’ve noticed that when importing big coords files (DXF) there is not problem. only when you go to edit it,or try to put the cursor far away of spacing*10000…

well after a couple hours wandering around that big big thing i just change the limits
of the boxes of the view properties and transform properties, i never think that these small change could do the trick, simply i’ve extended to 1.000.000 and the grid: spacing,lines and divisions to 1000.

so now, my civil projects will be more easy. so if anybody thinks that it is useful
i can give you the patch,

Attachments


can you explain where you can change theses values and which one
in which file

for the benefits of eveybody who might require the same thing

i think this was indicated earlier it is not the handling of numbers it’s more a matter of format showing and minimum grid spacing or maximum

i said that inisde blender python handles large number but which are not represented inside blender

Salutations

Salutations

i just do a few changes to drawview.c see my patch.txt

------------ BEGIN ---------------
2330c2330
< lim= 10000.0f*MAX2(1.0, G.vd->grid);

> lim= 1000000.0f*MAX2(1.0, G.vd->grid);
2508,2510c2508,2510
< uiDefButF(block, NUM, REDRAWVIEW3D, “Spacing:”, 10, 200, 140, 19, &vd->grid, 0.001, 100.0, 10, 0, “Set the distance between grid lines”);
< uiDefButS(block, NUM, REDRAWVIEW3D, “Lines:”, 10, 180, 140, 19, &vd->gridlines, 0.0, 100.0, 100, 0, “Set the number of grid lines in perspective view”);
< uiDefButS(block, NUM, REDRAWVIEW3D, “Divisions:”, 10, 160, 140, 19, &vd->gridsubdiv, 1.0, 100.0, 100, 0, “Set the number of grid lines”);

> uiDefButF(block, NUM, REDRAWVIEW3D, “Spacing:”, 10, 200, 140, 19, &vd->grid, 0.001, 1000.0, 10, 0, “Set the distance between grid lines”);
> uiDefButS(block, NUM, REDRAWVIEW3D, “Lines:”, 10, 180, 140, 19, &vd->gridlines, 0.0, 1000.0, 100, 0, “Set the number of grid lines in perspective view”);
> uiDefButS(block, NUM, REDRAWVIEW3D, “Divisions:”, 10, 160, 140, 19, &vd->gridsubdiv, 1.0, 1000.0, 100, 0, “Set the number of grid lines”);
2524c2524
< uiDefButF(block, NUM, REDRAWVIEW3D, “Clip End:”, 10, 76, 140, 19, &vd->far, 1.0, 10000.0*vd->grid, 100, 0, “Set the end of the range in which 3D objects are displayed (perspective view)”);

> uiDefButF(block, NUM, REDRAWVIEW3D, “Clip End:”, 10, 76, 140, 19, &vd->far, 1.0, 1000000.0vd->grid, 100, 0, “Set the end of the range in which 3D objects are displayed (perspective view)”);
2531,2533c2531,2533
< uiDefButF(block, NUM, REDRAWVIEW3D, “X:”, 160, 130, 150, 22, curs, -10000.0
vd->grid, 10000.0vd->grid, 10, 0, “X co-ordinate of the 3D cursor”);
< uiDefButF(block, NUM, REDRAWVIEW3D, “Y:”, 160, 108, 150, 22, curs+1, -10000.0
vd->grid, 10000.0vd->grid, 10, 0, “Y co-ordinate of the 3D cursor”);
< uiDefButF(block, NUM, REDRAWVIEW3D, “Z:”, 160, 86, 150, 22, curs+2, -10000.0
vd->grid, 10000.0*vd->grid, 10, 0, “Z co-ordinate of the 3D cursor”);

> uiDefButF(block, NUM, REDRAWVIEW3D, “X:”, 160, 130, 150, 22, curs, -1000000.0vd->grid, 1000000.0vd->grid, 10, 0, “X co-ordinate of the 3D cursor”);
> uiDefButF(block, NUM, REDRAWVIEW3D, “Y:”, 160, 108, 150, 22, curs+1, -1000000.0vd->grid, 1000000.0vd->grid, 10, 0, “Y co-ordinate of the 3D cursor”);
> uiDefButF(block, NUM, REDRAWVIEW3D, “Z:”, 160, 86, 150, 22, curs+2, -1000000.0vd->grid, 1000000.0vd->grid, 10, 0, “Z co-ordinate of the 3D cursor”);
------------ END ---------------

that’s it