Search found 41 matches

by cristian.a73
Sat Oct 13, 2018 1:07 pm
Forum: Python scripting and macros
Topic: Is Point on Face ?
Replies: 6
Views: 1162

Re: Is Point on Face ?

How about myFace.isInside(myPoint, tolerance, true)? "isInside" - Checks whether a point is inside or outside the shape. isInside(App.Vector, float, Boolean) => Boolean The App.Vector is the point you want to check if it's inside or not float gives the tolerance Boolean indicates if the p...
by cristian.a73
Sat Oct 13, 2018 11:10 am
Forum: Python scripting and macros
Topic: Is Point on Face ?
Replies: 6
Views: 1162

Is Point on Face ?

Hi FreeCAD Forumer I'm looking for and good and efficient answer to the subject question In my first approach by using vertex.distToSHape(face) a good solution was found : *** TEST distToShape | face_name:Face45 | dist:(2.595767256003112e-05, [(Vector (-22.0812, -11.1074, 16.2178), Vector (-22.08122...
by cristian.a73
Thu Oct 04, 2018 9:42 am
Forum: Install / Compile
Topic: FreeCADGui.so / Coin3D : linking error is killing me [Solved]
Replies: 9
Views: 1897

Re: FreeCADGui.so / Coin3D : linking error is killing me

I'm not sure about this, but I don't think you can easily have two versions of Coin installed. It may be possible with some system dependent precautions though. I know it's not possible on my gentoo box, but it might be different on ubuntu. I would suggest to uninstall all version of coin you curre...
by cristian.a73
Wed Oct 03, 2018 5:41 pm
Forum: Install / Compile
Topic: FreeCADGui.so / Coin3D : linking error is killing me [Solved]
Replies: 9
Views: 1897

Re: FreeCADGui.so / Coin3D : linking error is killing me

Sorry, I didn't mean your execution path, but the search path for finding libraries. This should be listed in /etc/ld.so.conf. Many years ago, the order in which the directories are listed there was also the order in which the linker looks for libraries. But I don't know it that's still true. You m...
by cristian.a73
Wed Oct 03, 2018 3:17 pm
Forum: Install / Compile
Topic: FreeCADGui.so / Coin3D : linking error is killing me [Solved]
Replies: 9
Views: 1897

Re: FreeCADGui.so / Coin3D : linking error is killing me

Could be a broken symlink. Try file /usr/local/lib/libCoin.so.80 and use ls -l to see where it's pointing to, in case it's really one. Yes, it's a broken link And what's your search path? Is /usr/local/lib before /usr/lib/x86_64-linux-gnu? Just guessing here, but could it be, it tries to link again...
by cristian.a73
Wed Oct 03, 2018 1:18 pm
Forum: Install / Compile
Topic: FreeCADGui.so / Coin3D : linking error is killing me [Solved]
Replies: 9
Views: 1897

Re: FreeCADGui.so / Coin3D : linking error is killing me

Hi waebbl ldconfig -p | grep -i coin libCoin.so.80 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libCoin.so.80 libCoin.so.60 (libc6,x86-64) => /usr/local/lib/libCoin.so.60 libCoin.so (libc6,x86-64) => /usr/local/lib/libCoin.so libCoin.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libCoin.so Please no...
by cristian.a73
Wed Oct 03, 2018 12:40 pm
Forum: Install / Compile
Topic: FreeCADGui.so / Coin3D : linking error is killing me [Solved]
Replies: 9
Views: 1897

FreeCADGui.so / Coin3D : linking error is killing me [Solved]

HI FreeCAD Forumer After run "sudo cmake-gui" : Compiler: GNU, version: 7.3.0 prefix: /usr/local datadir: data docdir: doc includedir: include libdir: /usr/local/lib Boost version: 1.65.1 Found the following Boost libraries: filesystem program_options regex signals system thread chrono dat...
by cristian.a73
Sat Sep 29, 2018 9:52 am
Forum: Path/CAM
Topic: PathMillFace : set/change Base property (without GUI)
Replies: 4
Views: 528

Re: PathMillFace : set/change Base property (without GUI)

You'll always need a face name, that's how FreeCAD and its properties works. The face names are generated internally and there are some issues with determinism. If you want to know more search for "topological naming" and you'll find a lot of ... comments ... pain ... tries and failures ....
by cristian.a73
Fri Sep 28, 2018 11:25 pm
Forum: Path/CAM
Topic: PathMillFace : set/change Base property (without GUI)
Replies: 4
Views: 528

Re: PathMillFace : set/change Base property (without GUI)

you should use PathOp.addBase(...) ok, but doesn't solve...it still need a face name even <Part.Face> This code work, but.... is it a best practice ?! def get_face_name(s, source_face): source_face_hcode = source_face.hashCode() for iFace in range(0, len(s.Faces)): fname = "Face"+str(iFac...
by cristian.a73
Fri Sep 28, 2018 9:26 pm
Forum: Path/CAM
Topic: PathMillFace : set/change Base property (without GUI)
Replies: 4
Views: 528

PathMillFace : set/change Base property (without GUI)

Hi FreeCAD Forumer In my code, in order to create a PathMillFace I do : from PathScripts import PathMillFace objFaceMill = PathMillFace.Create("FaceMill") objFaceMill.Base = [ ( glPartObj, ( 'Face50' ) ) ] objFaceMill.recompute() this work fine,,,but when I need to work on Shape.Faces[x] c...