News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Trim failure

Started by Dr PR, November 27, 2013, 03:23:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

V23.0
Win 7 Pro 64

I drew two lines, one horizontal and one vertical, in such a way that the lines would intersect.

I used the "Trim" (E) command to extend the vertical line to the horizontal line, and got a message saying that there was no intersection between the two lines.

Then I used the "Intersect 2" function to find the intersection between the two lines, and it completed successfully.

I checked the end points of the vertical line and they were both vertically above (same X and Z coordinates) the intersect point on the horizontal line.

The failure of the "Trim" function to find the intersection is a bug.

Anyone else seeing this? I have seen this only once.

Phil
DesignCAD user since 1987

samdavo

#1
Phil
Have you tried "FlattenZ.d3m"?
Obviously my inference is that what you are calling "equal"z values, could differ in the tenth decimal point etc ;  (and I have no idea of what tolerance DCAD looks for when it declares "different Z's!!" )

As to what happened, when or why, I would personally blame it on the "black box" inside the computer - and maybe a small ray of light snuck in through a crack in the CPU somewhere, and it went into "dark-grey box" mode. :)

Dr PR

Sam,

"Intersect 2" found the intersection. All the lines were in the same plane. Trim failed to find the intersection.

When I created the lines I used "Point Relative" with the "Reference Point" option selected. The lines were created in the same plane.

Phil
DesignCAD user since 1987

cavelamb

I'd have to agree with Phil.
The inconsistency does look like a bug.

bdeck

Hi DrPR,

Thanks for bringing it up.

I get this error daily, and in varying situations. I draw only in 2D.

Typically I drag one of the endpoints to a new location, and try again.

Dunno the cause, but would like it fixed. Possibly the problem is with point select, rather than the trim function? Dunno that either.

BD

minstrel

Quote from: Dr PR on November 27, 2013, 03:23:05 PM
Anyone else seeing this? I have seen this only once.

No.  Both 'Intersect 2' and 'Trim [E]' work as expected.

************

bdeck - I'm using ver23 and 2D 'Trim' to extend shows no problems.  What version are you using so I can try it and see?

samdavo

#6
Phil (and/or bdeck)
Actually I'd still be interested to know if FlattenZ worked.
The other thing I would try is "Trim Multiple lines \ Trim Picked Segments Only".

Many will argue that checking TME\TPSO is obviously irrelevant - but Just trying to eliminate the easy ones first , ok?  lol.  After that, I'll go back to asking elementary questions about something else :)

PS Hope it's not too early for a corny pun, but I guess I am just working on intersect instinct here (or is that insect instinct) - i.e. if I see a bug I don't like I flatten it.  :) cheers

Dr PR

minstrel,

"Trim" does work for me most of the time, but not always.

It is one of the worst types of programming bugs - an intermittent short in the main spring.

Phil
DesignCAD user since 1987

cavelamb

Quote from: samdavo on November 30, 2013, 11:52:08 AM
Phil (and/or bdeck)
Actually I'd still be interested to know if FlattenZ worked.
The other thing I would try is "Trim Multiple lines \ Trim Picked Segments Only".

Many will argue that checking TME\TPSO is obviously irrelevant - but Just trying to eliminate the easy ones first , ok?  lol.  After that, I'll go back to asking elementary questions about something else :)

PS Hope it's not too early for a corny pun, but I guess I am just working on intersect instinct here (or is that insect instinct) - i.e. if I see a bug I don't like I flatten it.  :) cheers

When the problem is that two lines are on slightly different planes (dunno what the tolerance is), flattening them
makes the trim work. (BTW, MY flattening trick is to scale the selected plane x .00001)

But there are times when nothing works. 
To force the fix I just trace a line segment over the desired trim line and have at.
That ALWAYS works.

bdeck

Quote from: minstrel on November 30, 2013, 11:41:26 AM
bdeck - I'm using ver23 and 2D 'Trim' to extend shows no problems.  What version are you using so I can try it and see?

Hi minstrel,

I'm using Version 17.2.  It fails probably less than 5% of the time. Not enough for me to look for the cause.

Regards,
BD

DrollTroll

#10
Phil, I'd love to see a drawing that demonstrates this. If we can find it, we can usually fix it. In this particular case, it could possibly be a mismatch in tolerance values.
25 years with DesignCAD

samdavo

Quote from: cavelamb on December 01, 2013, 09:28:27 AM
(BTW, MY flattening trick is to scale the selected plane x .00001)

But there are times when nothing works. 
To force the fix I just trace a line segment over the desired trim line and have at.
That ALWAYS works.
CL,
sorry , don;t understand you second point.

and CL  (or anyone)
That flatten trick is interesting.  Got me thinking, maybe it could be a "temporary flattenZ"?
Then again, If a drawing was scaled in z direction by .00001, and then zoomed to  10,000, presumably you would lose a lot of "z accuracy"  (just a hypothetical, not suggesting that's what you are saying - just "playing around with hypotheticals") .
Of course (doh) this comes back to accuracy / number of significant figures / decimal points etc...   
i.e.  A= 12.1234567890 is bound to be a different number
to  C= Bx 10,000,  where B = Ax 0.00001.
I'm guessing C would be more like 12.1234600000

Dr PR

DT,

The drawing where it happened is history - should have saved it immediately when it happened.

I'll watch for another incident and see if I can capture the problem.

Phil
DesignCAD user since 1987

roger_c130

I draw almost exclusively in 2d and run into this problem often.  After years of experience I chop the end I want to extend using the (key D) trim inside edge.  Don't know why it works but it do.

cavelamb

Quote from: samdavo on December 02, 2013, 10:38:47 AM
Quote from: cavelamb on December 01, 2013, 09:28:27 AM
(BTW, MY flattening trick is to scale the selected plane x .00001)

But there are times when nothing works. 
To force the fix I just trace a line segment over the desired trim line and have at.
That ALWAYS works.
CL,
sorry , don;t understand you second point.

and CL  (or anyone)
That flatten trick is interesting.  Got me thinking, maybe it could be a "temporary flattenZ"?
Then again, If a drawing was scaled in z direction by .00001, and then zoomed to  10,000, presumably you would lose a lot of "z accuracy"  (just a hypothetical, not suggesting that's what you are saying - just "playing around with hypotheticals") .
Of course (doh) this comes back to accuracy / number of significant figures / decimal points etc...   
i.e.  A= 12.1234567890 is bound to be a different number
to  C= Bx 10,000,  where B = Ax 0.00001.
I'm guessing C would be more like 12.1234600000

Try it and see how it works for you.
scale z .00001 (.000001 (one more zero) won't be accepted)
Rounds to zero.
If there is ANY Z value left at all after that, jut do it again.
Gar-on-teed to zero out the Z axis.

It's not a loss of "accuracy" on the Z axis (if that's what you were asking?)

It's a loss of Z DEPTH.  All gone.