TNP problem understanding how to get around it

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
drmacro
Veteran
Posts: 8984
Joined: Sun Mar 02, 2014 4:35 pm

Re: TNP problem understanding how to get around it

Post by drmacro »

jmanatee wrote: Mon Nov 28, 2022 5:00 pm Hows is hiding the pad going to help?

The datum plane is not necessary with this example I know I could detach the sketch and accomplish the same thing but the datum plane is an easy way to get a sketch (or multiple) in the correct orientation.

But this doesn't solve my underlying problem. How do I create a sketch while using the external geometry tool but not have it dependent on the external geometry ?

Is there now way around the TNP?
External geometry referenced to sketch geometry is less prone to TNP, but not immune.

External geometry attached to generated geometry is very prone to TNP. So hiding generated geometry and selecting sketch geometry is better.

Using expressions avoids TNP, when expressions can be used. For example, using a expression for the Attachment offset Z that references Pad.Length moves the sketch to the top of the Pad (assuming it is padded in the Z direction). And there is no TNP, since no geometry (edge, face, vertex) names are used.

The possibility of TNP can be reduced by good modelling techniques, but, it is a side effect in all parametric modellers.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
jmanatee
Posts: 14
Joined: Fri Nov 25, 2022 5:53 pm

Re: TNP problem understanding how to get around it

Post by jmanatee »

Starting to understand... I tried it referencing the pads sketch and that worked,

I am understand using the expression to get the placement,

Still curious why in that video his version of freecad the external geometry tool didn't create the External Geometry parameter.
drmacro
Veteran
Posts: 8984
Joined: Sun Mar 02, 2014 4:35 pm

Re: TNP problem understanding how to get around it

Post by drmacro »

jmanatee wrote: Mon Nov 28, 2022 6:13 pm ...
Still curious why in that video his version of freecad the external geometry tool didn't create the External Geometry parameter.
He is working in 0.18. Things are somewhat different in later versions.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
jmanatee
Posts: 14
Joined: Fri Nov 25, 2022 5:53 pm

Re: TNP problem understanding how to get around it

Post by jmanatee »

It would be nice to have a tool similar to the external geometry tool but just created construction geometry

Or to be able to convert the external geometry to construction geometry

Thanks for everyone's help
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: TNP problem understanding how to get around it

Post by chrisb »

jmanatee wrote: Mon Nov 28, 2022 6:32 pm It would be nice to have a tool similar to the external geometry tool but just created construction geometry

Or to be able to convert the external geometry to construction geometry
Why would you do that? External geometry i as good as - immutable - construction geometry.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
jmanatee
Posts: 14
Joined: Fri Nov 25, 2022 5:53 pm

Re: TNP problem understanding how to get around it

Post by jmanatee »

chrisb wrote: Mon Nov 28, 2022 10:10 pm
jmanatee wrote: Mon Nov 28, 2022 6:32 pm It would be nice to have a tool similar to the external geometry tool but just created construction geometry

Or to be able to convert the external geometry to construction geometry
Why would you do that? External geometry i as good as - immutable - construction geometry.
External geometry is only immutable if the base object isn't changed. So using the external geometry tool can cause the TNP.

My goal is to be able to grab the edge of the base object to be able to set position of items in the current sketch and not have the TNP occur if the base sketch changes.

Not sure this actually matters in real life use of freecad. But as I am learning I came across several articles and videos discussing the TNP and ways to avoid it. So I went down a rabbit hole trying to figure this out. Basically as I better understand what causes the TNP, I will know how to avoid creating it.
Post Reply