New "validate sketch" tool

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
wmayer
Founder
Posts: 20245
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: New "validate sketch" tool

Post by wmayer »

actually the tolerance should be relative to the size of the sketch. e.g. a quotient of the bounding box or a quotient of the length of the lines that the connected points belong to.
But it seems that OCC's internal tolerance by default doesn't depend on the object size. See: http://opencascade.blogspot.de/2009/02/ ... de_09.html

Code: Select all

import Part
b1=Part.makeBox(1000,1000,1000)
v1=b1.Vertexes[0]
v1.Tolerance
b2=Part.makeBox(0.001,0.001,0.001)
v2=b2.Vertexes[0]
v2.Tolerance
I don't know why Precision::Confusion() (1e-7) failed but it could be that the sketch was created with a version where we haven't merged the double-precision branch and thus caused some round-off errors.
User avatar
quick61
Veteran
Posts: 3803
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: New "validate sketch" tool

Post by quick61 »

Everything is working today and I see the find now works as well. Again, great job!

Mark

OS: Ubuntu 13.04
Platform: 64-bit
Version: 0.14.2653 (Git)
Branch: master
Hash: e90963ce115db1d6b068a49eee4988ddf7692d6c
Python version: 2.7.4
Qt version: 4.8.4
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.0
This post made with 0.0% Micro$oft products - GOT LINUX?
werd54
Posts: 3
Joined: Thu Oct 18, 2018 6:05 pm

Re: New "validate sketch" tool

Post by werd54 »

Is there a way to script this? I haven't been able to find any information on it and when I use it there is no output to the python console.
User avatar
easyw-fc
Veteran
Posts: 3630
Joined: Thu Jul 09, 2015 9:34 am

Re: New "validate sketch" tool

Post by easyw-fc »

werd54
Posts: 3
Joined: Thu Oct 18, 2018 6:05 pm

Re: New "validate sketch" tool

Post by werd54 »

easyw-fc wrote: Mon Feb 25, 2019 10:33 pm Have a look at here
https://forum.freecadweb.org/viewtopic.php?f=10&t=29376
Thanks! I think this is just what I needed.
Post Reply