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.

Intersect 2 failure (again)

Started by Dr PR, February 11, 2014, 12:01:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

V23.0
Win 7 Pro 64

Here is an example of a BUG that sometimes almost drives me crazy.

The image shows a line (V) and a circle (C). The circle was drawn by placing the first point at the left end of the line, the second point 0.25 units above the first point in the Y direction, and then gravity snapping to the other end of the line.

The circle has to intersect the line. If you open the file and use "Intersect 2" you will find that the intersection works.

****

The circle and line were copied from a 3 Mbyte file I have been working on for several days. It has a lot of grid surfaces and a few lines and curves.

In that file "Intersect 2" does not work (bug) for most intersections, including this one.

What is really odd is that if I draw a triangular polygon (P) using the two end points of the line and a third point, the "Line Plane" function works every time. So the program can find the intersection of the circle with a polygon, but not a line that is in the same plane with the circle. ?WTF

Odder still, after I draw a new line (V) from the intersection of the circle with the polygon to another random point not in the plane of the circle, the "Intersect 2" function will find the intersection of the circle with the new line!

I tried copying a lot of the grids, lines, curves and the circle/line to a new file. There the "Intersect 2" function does work to find the intersection of the circle and the line, even with all the other junk in the drawing.

When I started this file about a week ago "Intersect 2" did work OK for days, but now it fails. Something is happening in a file after it has been edited many times that makes the "Intersect 2" function fail to find the intersection between a circle and a line in the plane of the circle (radius, chord, diameter, etc). This is a fundamental procedure for creating geometric constructions, and absolutely essential for a CAD program!

****

I have seen "Intersect 2" fail innumerable times, and have been reporting it for a decade or more, on the Forum, before that in emails, and before that in snail mails. This bug dates back into the '90s. It has been "fixed" several times only to resurface again a few versions later.

Phil

PS: If I shut down the program, restart it and load the original file the "Intersect 2" function still fails to find the intersection of the circle and line. Something in the file is preventing the function from working.

PPS: I have sent the orignal file to DT to help with debugging.
DesignCAD user since 1987

DrollTroll

Ah, but the line and the circle are not in fact coplanar. Use the Set Working Plane command to generate a workplane based off 3 points around the circle.
Now check the points of the line. One is at z = 0, but one is not. So the line is actually skewed a bit out of the circle's plane. Fix that and I2 works again.

"But why does it work in the smaller drawing?" you ask. My best guess is, because of the Units command. It looks like you have used U to change the internal scale of the larger drawing; when you pasted it into the empty drawing, the internal scale was returned to its normal value. That difference, which may not be visible at the user level, will affect calculations on internal coordinate values and error margins, and is I suspect why it works one place but not the other. That said, returning Sys(32) to its normal value in the larger drawing still doesn't fix the I2 failure -- only fixing the line does.
25 years with DesignCAD

Dr PR

True,

I used the "Units" function to scale an earlier drawing to the dimensions of an imported bitmap blueprint drawing. Then I traces the hull lines.

I probably saved the drawing with a new name and then deleted the bitmap. This second file is the one I have been working in. Maybe the scaled units are causing small round-off errors for some calculations.

I'll try copying everything and pasting it into a new blank drawing. That should scale everything to the oriiginal drawing units in the new drawing. I'll save backups just incase.

Phil
DesignCAD user since 1987