DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

X and Y dimension problems in 3D

Started by Dempsey, April 03, 2010, 03:03:31 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

Dempsey,

I suspect the reason I have never seen this problem is that I started using DesignCAD before the "Slice" function was introduced. Then as I recall, when it was introduced it sliced everything in the drawing, on both visible and hidden layers, so I didn't use it.

I have always created a "tool" solid and then used the "Solids Subtract" function to remove the part of the working solid I don't want. This has never (as far as I know) produced the nonparallel faces that you are seeing here. Since this is my "normal" method for cutting solids I have never started using the "Slice" function.

Looks like you have pinned down the problem. Wonder why "Slice" in the XY plane doesn't set all points in the same Z plane?

****

There is a very simple cure for this problem - maybe.

If you select Ortho Mode (H) before creating the dimension the resulting dimension is positioned correctly. It can't set the points at the small odd angles.

However, for some reason in your original drawing I get a dimension across the top front and top back of 17 1/8 instead of 17 5/32 shown in your original dimensions.
DesignCAD user since 1987

Dean

#16
Hi, if I view front view and perspective view with dempsey's original drawing I will see that when I place a snap in the front view it is really snapping to the back of the solid in the perspective view. it is very sensitive.  When these snaps align together in each view the dimension is placed correctly.If I place dimensions in the front view while viewing the perspective view I will experience this. It appears that something is changing the snap calculations   pertaining to the solid after performing a slice.



Quote from: Dr PR on April 06, 2010, 09:23:50 AM
Dempsey,

I suspect the reason I have never seen this problem is that I started using DesignCAD before the "Slice" function was introduced. Then as I recall, when it was introduced it sliced everything in the drawing, on both visible and hidden layers, so I didn't use it.

I have always created a "tool" solid and then used the "Solids Subtract" function to remove the part of the working solid I don't want. This has never (as far as I know) produced the nonparallel faces that you are seeing here. Since this is my "normal" method for cutting solids I have never started using the "Slice" function.

Looks like you have pinned down the problem. Wonder why "Slice" in the XY plane doesn't set all points in the same Z plane?

****

There is a very simple cure for this problem - maybe.

If you select Ortho Mode (H) before creating the dimension the resulting dimension is positioned correctly. It can't set the points at the small odd angles.

However, for some reason in your original drawing I get a dimension across the top front and top back of 17 1/8 instead of 17 5/32 shown in your original dimensions.

DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Dempsey

Dean, Dr PR,

Thanks for the tip of using Ortho Mode when doing the dimensions; works like a charm. At least now I can continue doing dimensions in V20.0.

Dempsey

Dempsey

Dr PR,

I always work with +6 precision for my dimensions. You most likely use .001 as then 17-5/32 becomes 17-1/8.
Dempsey

Dr PR

Dempsey,

Duh! Thanks. I forgot about precision. I normally set everything to four decimal places, but I was testing your drawing with a default configuration V20.0 and dimensions had a three decimal place precision. I had changed the "Options/General" precision to 10 but forgot about the dimension precision.

Also, I always use decimal dimensions, and I simple forgot about "precision" in the fractions.

When I set dimension precision to +5 I do get 17-5/32.
DesignCAD user since 1987

Dempsey

Can you believe it, I have always been working (at least in V20.0 I think) with Options/General precision set at 2. I changed it to 10 and now the slice command is accurate to +15 precision. In a round about way the problems are finally solved.

Thank you all.
Dempsey

Lar

#21
Dempsey, I seem to remember you saying earlier that you used the 'XY Plane' option in the Slice command. If this is so (I don't have time to check right now) then you are saying the Options/General precision affects the proper performance of the Slice in the XY Plane. That should be automatically true ( **edit: by true here I mean "staight'** ). I can see errors happening with 'Custom Plane' since the user sets 3 points to define the cutting plane but with the other three Slice options the user only sets 1 point to define the cutting location in the specified plane.

Lar

Dr PR

OK, let's see if I understand this.

"Options/General" lets us set the precision for what? I have always assumed that it was just for the display of numbers in the Coordinate Tool Bar and a few other program generated dimensions.

I have always assumed that the program does all calculation to the maximum precision possible (code dependent) and the precision option just affects how many digits are displayed.

So why does changing the "Options/General" precision setting have any effect on how the slice function works? If it does isn't this a bug?

Of course the Dimensions precision setting controls the number of digits displayed in dimensions, but has nothing to do with the actual precision of the measurement. Right?

DesignCAD user since 1987

Dempsey

You got me there folks. DT has to pronounce his ruling on this one.

(Just sort of mumbling to myself... perhaps it is a leftover from the DOS days... when floating point calcs were very expensive... and double precisions was a program add-on... just mumbling to myself)
Dempsey

Bob P

Quote from: Dempsey on April 08, 2010, 02:39:51 PM
You got me there folks. DT has to pronounce his ruling on this one.

(Just sort of mumbling to myself... perhaps it is a leftover from the DOS days... when floating point calcs were very expensive... and double precisions was a program add-on... just mumbling to myself)

I ran the old ProDesign on an IBM XT (8088) without a math coprocessor for about a month.  Just moving the cursor was a major project.  Back then the coprocessor alone was around $250.  Then I put in a 286 card with a math coprocessor.  Maybe $700?  And an expanded memory card.  Pretty soon I had a $5000, 20Mb hard drive, 2Mb-memory project...

We are so spoiled today.  I just put a semi-fancy-dan box together for under $750.

Dr PR

Dempsey,

Have you seen this problem before or is this the only instance?

Has anyone else seen a similar occurrence (except in Dempsey's example)?

I wonder if this was caused by "cursor creep" while you were drawing?

For those not familiar with it, cursor creep is what happens between the time you position the cursor and then press a key on the keyboard. It can happen when the mouse "tail" (cord) pulls the mouse slightly (one of the reasons I use a trackball). A more common cause is bit flip of the lowest bit in the X or Y coordinate from the mouse/trackball. If you position the mouse exactly at the midpoint of resolution between a 0 or 1 the bit can toggle as a result of slight vibrations, etc. This causes the cursor to move from where you set it (say with gravity snap). So you think it is exactly on a point but it isn't - it is a very small distance away from where you set it. These errors are cumulative in a drawing, and can add up to significant problems after a while.
DesignCAD user since 1987

Dempsey

#26
Now that I know of the precision problem I pay more attention. In my recent 3D grandfather clock drawing this "imprecision" is quite common, although not all dimension are misbehaving because of that though.

I doubt very much that it is cursor creep. Most of my objects are based on the box form where I set the 1st point with gravity snap and the 2nd point with point relative to the last point. I do that to indeed avoid cursor creep. In case of profiles I draw the profile in 2D, make it a plane, and then extrude by gravity snap on a point of the profile and again point relative to the last point. Of course I do move, copy and rotate.

I only noticed this "imprecision" problem in V20.0 when I started doing dimensioning in 3D mode. Before V20.0 I did my drawing in V19.x, but my dimensioning in V17.2. V17.2 never showed dimensioning problems and hence I was not aware that there was a Slicing issue.

Anyway, I repeated the testing in both V17.2 and V20.0 using a box and doing a XY plane Slicing at 0.3 from the front plane and then a second Slice at 1.0 from the front plane.

V20.0, Option/General precisions both at 15, the Angle & Distance between Points at precision 15, box front verified to be correct, after Slicing:
Left Y --> error in Y and Z angle
Right Y --> error in Y angle (2nd slice error in Y and Z angle)
Top X --> correct
Bottom X --> error in X and Z angle
NOTE 1: X dimensions good, Y dimensions no good
NOTE 2: in other tests I have seen the left Y being correct too.

V17.2, Option/General precisions both at 15 and the Angle & Distance between Points at precision 15, box front verified to be correct, after Slicing:
Left Y --> error in Y and Z angle
Right Y --> error in Y angle (2nd slice correct)
Top X --> correct
Bottom X --> error in X and Z angle
NOTE 1: all dimensions good

Dempsey

Dr PR

Dempsey,

I apologize! For a while there I thought you were eating bad bananas and hallucinating.

I decided to run a test on my system (V20.0). See the attached image and file:

1. I created a cube 18x18x18 using the box tool on layer 1.
2. The cube was duplicated and the duplicate was moved to layer 2.
3. Layer 2 was made active and layer 1 was locked and hidden.
4. I used the "Solids/Slice" tool to make two cuts, setting the first point along the top right edge (XZ direction) using the "K" snap to line function, and pressed "Enter" to slice the cube without erating either part.
5. Then I moved the three parts apart in the Z direction.
6. Layer 1 was enabled.
7. I dimensioned all horizontal (X) and vertical (Y) sides, using "normal" text position and a precision of "+15."

As you can see in "slice test.jpg", most dimensions were the correct 18.000000000000000 (green). However, one vertical edge was 17.999999999999773 (red). I dimensioned it several times - two results are shown.

I repeated the test with 12 more cubes, using different view rotations and slice positions. Almost all dimensions came out correctly, with an occasional error. Some errors were on horizontal edges and others on vertical edges. The erroneous dimensions were both smaller and larger than 18.000000000000000.

Then I placed three cubes side by side and sliced all three at the same time, in two places along the top right (Z direction) edge. In this test all three cubes were sliced identically. One set of slices had no errors, horizontal or vertical. Another set had two errors on the top two edges of the middle slice, 18.000000000000227. The third set of slices had one error, on the front top edge of the rear slice, 17.999999999999773 again. The errors are +/- 0.000000000000227.

So, even though all slices were in the same planes, with identical copies of the same cube, with all three cubes aligned in the XY dimensions, they gave different results.

Stranger still, when I got erroneous results I found that if I repeated the dimensions along the same edges I got different results - one time the dimension was 18.000000000000000 and the next time it might be different. I found that if I repeated the dimension along edges that first were in error I eventually got the correct (?) dimension. See the "slice test 4.jpg" image.

Notice the red and green arrows I have drawn pointing to the corners of the sides showing erroneous dimensions. If I set the dimension points from positions inside the solid (green arrows) I got the correct dimension. If I set the dimension points from outside (red arrows) the solid I got erroneous dimensions!

Weirder still, "inside" and "outside" are as viewed on the screen - there is no telling where the original cursor position actually was in 3D.

At each corner of the solid three planes come together at a point. It appears that some of the plane corners are at the correct position, but at least one is off by a small bit. So if you get lucky and snap from a position close to a corner in the correct position you get the "right" results, but if you happen to find a corner that is off a bit you get the "wrong" results.

Either that or it is a matter of whether you are smiling or frowning when you set the points.
DesignCAD user since 1987

Dempsey

Like you said Dr PR, I was wondering about the bananas too  ;D ;D ;D, but I appreciate you doing the same kind of tests and coming up with that small error too.

That small error has been there already since V17.2 and perhaps even in earlier than that (I don't have V15 and V16 installed). It is just that up to V17.2 the dimensions where not sensitive to those small errors, while V20.0 is.

I think we have gone over it enough now. I will report the bug(s) and let DT pass his verdict over it.
Dempsey

Dr PR

Dempsey,

I have seen similar problems with linear dimensions at odd angles in V15. However, I have no idea how large the distance/angle error had to be between points that were supposed to be coplanar before the dimensions was angled.

In every case that I saw this it was due to operator error. I had personally screwed up the solids while creating them (I didn't use "Solid/Slice."
DesignCAD user since 1987