Search found 764 matches

Go to advanced search

by looo
Sun Apr 23, 2017 9:11 pm
Forum: Python scripting and macros
Topic: FC crash with SoNodeSensor
Replies: 3
Views: 55

Re: FC crash with SoNodeSensor

I have already asked at the coin mailing list if there is a chance to merge my branch into the official pivy branch. But I don't think this will happen soon.


At the moment there are some more issues to be resolved, but once this is done, I will try to create a 0.6.x release for pivy.
by looo
Sun Apr 23, 2017 12:42 pm
Forum: Python scripting and macros
Topic: permanet setting of pathes to extern modules
Replies: 3
Views: 54

Re: permanet setting of pathes to extern modules

maybe a user-startup-file would be a good idea? Something like .bashrc or .pythonrc. As a workaround you can use a startupMod (create file: .FreeCAD/Mod/startUp/Init.py and place the sys.path modifications there)

Maybe someone can report the problem with cv2 install-dir to the developers of cv2?
by looo
Sun Apr 23, 2017 11:09 am
Forum: Python scripting and macros
Topic: FC crash with SoNodeSensor
Replies: 3
Views: 55

Re: FC crash with SoNodeSensor

seems to work with the pivy-branch I am using. (At least no crash)
I have added some of these fixes to my branch recently... https://github.com/looooo/pivy
by looo
Sun Apr 23, 2017 10:21 am
Forum: Open discussion
Topic: "Solid" clipping plane
Replies: 16
Views: 978

Re: "Solid" clipping plane

Is this possible without blocking the Task-panel as the original clipping tool does? Maybe the SoClipPlanManip node could be useful. I think drawing the cap is not that important for this task. from pivy import coin sg = Gui.ActiveDocument.ActiveView.getSceneGraph() clip_plane = coin.SoClipPlaneMan...
by looo
Sat Apr 22, 2017 9:33 pm
Forum: Open discussion
Topic: "Solid" clipping plane
Replies: 16
Views: 978

Re: "Solid" clipping plane

Yes, after playing with the stencil-buffer another time, the problem with the selection is gone. Currently the algorithm has some problems with the sketcher (crash) and there are still some small artifacts with lines... Also I do not know how to draw the capping-plane. Somehow the size has to be spe...
by looo
Sat Apr 22, 2017 6:58 am
Forum: Open discussion
Topic: "Solid" clipping plane
Replies: 16
Views: 978

Re: "Solid" clipping plane

using a SoCallback works also in FreeCAD: (still only python code + some changes in pivy to make the SoCallback work with freecad)
gear_cap.png
gear_cap.png (15.15 KiB) Viewed 147 times


but selection makes some problems...
selection_problem.png
selection_problem.png (19.17 KiB) Viewed 147 times


Is there a way to disable the selection for some renderBelowPath calls?
by looo
Fri Apr 21, 2017 2:23 pm
Forum: Open discussion
Topic: "Solid" clipping plane
Replies: 16
Views: 978

Re: "Solid" clipping plane

again some references: coin adds the clipPlane here: https://github.com/looooo/coin3d/blob/master/src/elements/GL/SoGLClipPlaneElement.cpp#L131L144 the plane gets removed when this function is called: https://github.com/looooo/coin3d/blob/master/src/elements/GL/SoGLClipPlaneElement.cpp#L87L100 The e...
by looo
Fri Apr 21, 2017 10:59 am
Forum: Open discussion
Topic: "Solid" clipping plane
Replies: 16
Views: 978

Re: "Solid" clipping plane

Don't know how coin does handle it with it's clipping. But would be nice if you find a way to make this work Ok, a basic example works now: https://github.com/looooo/pivy/blob/master/examples/utils/GlClipPlane.py capping.png With OpenGL it works this way: 1. draw front faces and decrease stencil-bu...
by looo
Fri Apr 21, 2017 7:40 am
Forum: Install / Compile
Topic: ana(conda) windows packaging
Replies: 132
Views: 2330

Re: ana(conda) windows packaging

is the freecad-channel in the config?

Code: Select all

conda config --show-sources


ps.: Currently I can not build with windows. I will upload a new build with occt7.1.0 next week.
by looo
Thu Apr 20, 2017 1:56 pm
Forum: Open discussion
Topic: "Solid" clipping plane
Replies: 16
Views: 978

Re: "Solid" clipping plane

Maybe this is what I need: SoNode::GLRenderBelowPath But also this doesn't work with python: Traceback (most recent call last): File "SoClipPlane.py", line 49, in myCallbackRoutine cap.stencilBuffer(action) File "SoClipPlane.py", line 28, in stencilBuffer self.node.GLRenderBelowP...

Go to advanced search